[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cubox-i with Debian Stock Kernel



On Friday 30 May 2014 20:01:16 Ian Campbell wrote:
> On Fri, 2014-05-30 at 20:50 +0200, Rainer Dorsch wrote:
> > CuBox-i U-Boot > ext4load mmc 0:2 0x10800000 vmlinuz
> > 2853240 bytes read in 336 ms (8.1 MiB/s)
> > CuBox-i U-Boot > ext4load mmc 0:2 0x18000000 imx6q-cubox-i.dtb
> > 28603 bytes read in 154 ms (180.7 KiB/s)
> > CuBox-i U-Boot > ext4load mmc 0:2 0x12800000 initrd.img
> > 10909053 bytes read in 726 ms (14.3 MiB/s)
> > CuBox-i U-Boot > bootz 0x10800000 0x12800000:${filesize} 0x18000000
> > Kernel image @ 0x10800000 [ 0x000000 - 0x2b8978 ]
> > ## Flattened Device Tree blob at 18000000
> > 
> >    Booting using the fdt blob at 0x18000000
> > 
> > EHCI failed to shut down host controller.
> > 
> >    Loading Ramdisk to 8ecf7000, end 8f75e57d ... OK
> >    Using Device Tree in place at 18000000, end 18009fba
> > 
> > Starting kernel ...
> > 
> > 
> > and here the Cubox-i hangs, no progress anymore.
> 
> Your previous examples included setting bootargs, is that not needed
> here too for some reason? Since it includes the console= I suspect it
> should be, unless you saveenv'd it or something...
> 

Hmm...I saved them before.

I did a new setup, because I was not sure, if dd has overwritten the 
environment. But same result, kernel is not booting, but it boots neither the 
uImage. Is 

dd if=/home/rd/SPL of=/dev/sdf bs=1K seek=1
dd if=/home/rd/u-boot.img of=/dev/sdf bs=1K seek=42

sufficient for installing the Debian u-boot? Or do I need to install more files?

I have done the same setup as Vagrant (not deleted the default environment 
settings though, but I assume they are not really used).

CuBox-i U-Boot > printenv
baudrate=115200
board=mx6-cubox-i
bootargs=console=ttymxc0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 ro 
rootwait
bootcmd=run loadkernel ; run loadinitrd ; run loadfdt ; bootz ${loadaddr} 
${ramdiskaddr}:${initrdsize} ${fdt_addr}
bootdelay=3
bootload=load $bootdev $bootunit:$bootpart 0x$loadaddr $bootroot$loadfile; if 
test $fdt_load = yes; then load $fdt_dev $fdt_unit:$fdt_part 0x$fdt_addr 
$fdt_i
bootset=setenv bootenv 'run set$rootdev; setenv bootargs $root $video $console 
$bootextra'; if load $bootdev $bootunit:$bootpart 0x$loadaddr $envfile; then b
bootstart=echo $bootfile $bootargs; echo $bootrun $loadfile; $bootrun
console=console=ttymxc0,115200
cpu=6Q
ethact=FEC
ethaddr=d0:63:b4:00:32:5c
fdt_addr=0x18000000
fdt_file=imx6q-cubox-i.dtb
fdt_high=ffffffff
initrd=initrd.img
kernel=vmlinuz
loadaddr=0x10800000
loadfdt=load mmc 0:2 0x18000000 imx6q-cubox-i.dtb
loadinitrd=load mmc 0:2 ${ramdiskaddr} ${initrd} ; setenv initrdsize 
${filesize}
loadkernel=load mmc 0:2 0x10800000 vmlinuz
mmc=run reset; mmc rescan
new_kern=env del bootfile bootkern load_fdt
old_kern=setenv bootfile uImage; setenv bootkern bootm; setenv load_fdt no
preboot=usb start
preset=bootdev=mmc; bootunit=0; bootpart=1; bootroot=/boot/; 
envfile=${bootroot}uEnv.txt; bootfile=zImage; rootfs=ext4; 
rootextra="rootfstype=$rootfs ro roo0
ramdiskaddr=0x11800000
reset=env del bootdev bootunit bootpart bootroot envfile bootfile bootkern 
rootdev rootunit rootpart rootfs rootextra; env del fdt_load fdt_dev fdt_unit 
fdtn
serialcon=setenv console console=ttymxc0,$baudrate; setenv stdout serial; 
setenv stderr serial; setenv stdin serial,usbkbd
setlabel=root="root=$rootlabel $rootextra"
setmmc=root="root=/dev/mmcblk${rootunit}p$rootpart $rootextra"
setusb=root="root=/dev/sda$rootpart $rootextra"
splashpos=m,m
stderr=serial,vga
stdin=serial,usbkbd
stdout=serial,vga
usb=run reset; setenv bootdev usb; usb reset
videocon=setenv console; setenv stdout vga; setenv stderr vga; setenv stdin 
serial,usbkbd

Environment size: 2617/8188 bytes
CuBox-i U-Boot > run bootcmd
2853240 bytes read in 335 ms (8.1 MiB/s)
10909053 bytes read in 727 ms (14.3 MiB/s)
28603 bytes read in 155 ms (179.7 KiB/s)
Kernel image @ 0x10800000 [ 0x000000 - 0x2b8978 ]
## Flattened Device Tree blob at 18000000
   Booting using the fdt blob at 0x18000000
EHCI failed to shut down host controller.
   Loading Ramdisk to 8ecf7000, end 8f75e57d ... OK
   Using Device Tree in place at 18000000, end 18009fba

Starting kernel ...

Rainer

-- 
Rainer Dorsch
http://bokomoko.de/


Reply to: