2013-01-21, 00:43
(2013-01-20, 23:02)davilla Wrote: m3:
setenv serverip 192.168.2.202
setenv gatewayip 192.168.2.1
setenv ipaddr 192.168.2.214
setenv temp logo=osd1,${loadlogoaddr},full,${outputmode},full androidboot.resolution=720p resolution_size=1280,720
setenv temp1 nohltmem=${memsize} mac=${ethaddr}
setenv bootargs rw noinitrd root=/dev/nfs nfsroot=192.168.2.202:/opt/aml-rootfs-m3,nfsvers=3 init=/sbin/init ip=192.168.2.215:192.168.2.202:192.168.2.1:255.255.255.0:target:eth0:off console=ttyS0,115200 a9_clk=800M clk81=187500k ${temp1} ${temp}
nand read logo ${loadlogoaddr} ${logo_start} ${logo_size}
tftpboot 0x82000000 uImage-m3;bootm 0x82000000
The 2nd part is the actual kernel boot.
you might do a 'printenv' to get the uboot command-line
Thanks Davilla. Still getting the same issue with the bootargs command line not being passed to the kernel by the look of it?
I had to modify your suggestions a bit - and have a few area I'm confused by which may be significant.
My default printenv in uBoot on start-up before I do anything is :
Code:
bootcmd=run nandboot
bootdelay=1
baudrate=115200
ethaddr=00:01:02:65:04:75
ipaddr=10.18.9.97
serverip=10.18.9.113
gatewayip=10.18.9.1
netmask=255.255.255.0
hostname=arm_m3
bootfile=uImage
loadaddr=0x82000000
testaddr=0x82400000
usbtty=cdc_acm
console=ttyS2,115200n8
mmcargs=setenv bootargs console=${console} boardname=m3-oplay
chipname=8726m
720poutputwidth=1280
720poutputheight=720
bootargs=root=/dev/cardblksd2 rw rootfstype=ext3 androidboot.resolution=720p rootwait init=/init console=ttyS0,115200n8 nohlt a9_clk=600M clk81=187500000 mem=1024m
nandargs=setenv bootargs rootfstype=ext3 androidboot.resolution=${outputmode} rootwait init=/init console=ttyS0,115200n8 nohlt logo=osd1,0x84100000,loaded,${outputmode} a9_clk=600M clk81=187500000 mem=1024m
nandboot=run nandargs; nand read ${normal_name} ${loadaddr} 0 ${normal_size};bootm ${loadaddr}
recoveryboot=echo Enter recovery mode...;mmcinfo;fatload mmc 0 ${loadaddr} ${recovery_path};bootm ${loadaddr}
bootloader_start=0
bootloader_size=60000
bootloader_path=u-boot-aml-ucl.bin
normal_name=boot
normal_start=0x8800000
normal_size=0x800000
recovery_name=recovery
recovery_start=0x6800000
recovery_size=0x800000
recovery_path=uImage_recovery
logo_name=logo
logo_start=0x4800000
logo_size=0x400000
aml_logo_name=aml_logo
aml_logo_start=0x5800000
aml_logo_size=0x400000
stdin=serial
stdout=serial
stderr=serial
ethact=Apollo EMAC
outputmode=480i
upgrade_step=2
Environment size: 1418/8188 bytes
gd->env_addr: 0x8b8057d4
As you can see I don't have a loadlogoaddr defined, but looking at the line from my printenv
Code:
nandargs=setenv bootargs rootfstype=ext3 androidboot.resolution=${outputmode} rootwait init=/init console=ttyS0,115200n8 nohlt logo=osd1,0x84100000,loaded,${outputmode} a9_clk=600M clk81=187500000 mem=1024m
Code:
setenv loadlogoaddr 0x84100000
I'm not sure this line
Code:
setenv temp1 nohltmem=${memsize} mac=${ethaddr}
Code:
setenv memsize=1024M
After doing this I end up with the following when I printenv
Code:
bootcmd=run nandboot
bootdelay=1
baudrate=115200
ethaddr=00:01:02:65:04:75
netmask=255.255.255.0
hostname=arm_m3
bootfile=uImage
loadaddr=0x82000000
testaddr=0x82400000
usbtty=cdc_acm
console=ttyS2,115200n8
mmcargs=setenv bootargs console=${console} boardname=m3-oplay
chipname=8726m
720poutputwidth=1280
720poutputheight=720
nandargs=setenv bootargs rootfstype=ext3 androidboot.resolution=${outputmode} rootwait init=/init console=ttyS0,115200n8 nohlt logo=osd1,0x84100000,loaded,${outputmode} a9_clk=600M clk81=187500000 mem=1024m
nandboot=run nandargs; nand read ${normal_name} ${loadaddr} 0 ${normal_size};bootm ${loadaddr}
recoveryboot=echo Enter recovery mode...;mmcinfo;fatload mmc 0 ${loadaddr} ${recovery_path};bootm ${loadaddr}
bootloader_start=0
bootloader_size=60000
bootloader_path=u-boot-aml-ucl.bin
normal_name=boot
normal_start=0x8800000
normal_size=0x800000
recovery_name=recovery
recovery_start=0x6800000
recovery_size=0x800000
recovery_path=uImage_recovery
logo_name=logo
logo_start=0x4800000
logo_size=0x400000
aml_logo_name=aml_logo
aml_logo_start=0x5800000
aml_logo_size=0x400000
stdin=serial
stdout=serial
stderr=serial
ethact=Apollo EMAC
outputmode=480i
upgrade_step=2
serverip=192.168.1.16
gatewayip=192.168.1.254
ipaddr=192.168.1.17
loadlogoaddr=0x84100000
temp=logo=osd1,0x84100000,full,480i,full androidboot.resolution=720p resolution_size=1280,720
memsize=1024M
temp1=nohltmem=1024M mac=00:01:02:65:04:75
bootargs=rw noinitrd root=/dev/nfs nfsroot=192.168.1.16:/home/stephen/target,nfsvers=3 init=/sbin/init ip=192.168.1.17:192.168.1.16:192.168.1.254:255.255.255.0:target:eth0:off console=ttyS0,115200 a9_clk=600M clk81=187500000 nohltmem=1024M mac=00:01:02:65:04:75 logo=osd1,0x84100000,full,480i,full androidboot.resolution=720p resolution_size=1280,720
Environment size: 1785/8188 bytes
I reduced the clock rate back to 600M from 800M as that is what my previous bootargs had.
**EDIT Was trying to understand the "ip=" bit of the bootargs and looked up the kernel parameters. I think I've tweaked mine to be right :
Code:
ip=192.168.1.17:192.168.1.16:192.168.1.254:255.255.255.0:target:eth0:off
Where 192.168.1.17 is the IP address I want for my Amlogic box (have also tried 192.168.1.18), 192.168.1.16 is the IP address of my NFS server, 192.168.1.254 is my Gateway, eth0 is my adaptor and off means no Autoconf."
"target" is the hostname - but this shouldn't be significant for me? **
I can't execute the following line
Code:
nand read logo ${loadlogoaddr} ${logo_start} ${logo_size}
When I type it I get the nand help - I think the logo is not being understood - is it a variable that is not defined? Or is my uBoot missing this? I can drop the logo and it does something...
However I still get this line when I bootm
Code:
[ 0.000000] Ignoring unrecognised tag 0x00000000
[ 0.000000] Ignoring tag cmdline (using the default kernel command line)
The boot process pauses here :
Code:
[ 6.942351] yaffs: dev is 32505861 name is "mtdblock5" rw
[ 6.947388] yaffs: passed flags ""
[ 6.950823] yaffs2 check point failed.
Then
Code:
[ 18.761403] devtmpfs: error mounting -2
[ 18.761436] init_post.
[ 18.762879] Freeing init memory: 192K
[ 18.766527] run_init_process /sbin/init.
[ 18.770454] Failed to execute /sbin/init. Attempting defaults...
[ 18.776474] run_init_process /sbin/init.
[ 18.780375] run_init_process /etc/init.
[ 18.793219] run_init_process /bin/init.
[ 18.838544] run_init_process /bin/sh.
/bin/sh: 8: No such file or directory
[ 18.851537] Kernel panic - not syncing: Attempted to kill init!
Anything obvious I'm doing wrong?
Apologies if this is taking up too much of your time. I'm trying to get somewhere - and slowly getting there...