Re: Cubox-i with Debian Stock Kernel
Am 30.05.2014 16:26, schrieb Steve Langasek:
On Fri, May 30, 2014 at 04:07:10PM +0200, Rainer Dorsch wrote:
Am 30.05.2014 15:04, schrieb Ian Campbell:
On Fri, 2014-05-30 at 14:13 +0200, Steve Langasek wrote:
There is already a branch for this in flash-kernel git, which I was waiting
for u-boot support on in unstable before proposing for merge. U-Boot
support is there now, so maybe this is mergeable now. Ian, would you like a
bug report for this?
Can we get the patch on the list for comment please? Looks like it might
want rebasing onto later flash-kernel?
Looking at the script in git, I'm not clear if the platform requires
uImage and bootm rather than bootz, it seems like the script tries both?
(or am I misreading it?) Also does it need appended DTB or does it
provide an FDT in firmware?
Latest flash-kernel allows the use of @@KERNEL_VERSION@@ in the boot.scr
and also automatically installs the appropriate dtb into /boot -- which
might simplify some things in the script?
The blog entry from Russell implies that bootz is supported and
works (but he uses no ramdisk in his example):
https://plus.google.com/103895730806848715870/posts/dDFGdPL2oEn
Yes, bootz works fine. The default compiled-in U-Boot environment provided
by the cubox-i branch includes all the setup for this. The version included
in Debian's U-Boot also has support for ramdisks (Russell's, last I saw, did
not).
I did not have Debian's u-boot. I tested it now, but does not work at
all for me.
I dd ed SPL and u-boot.img from /usr/lib/u-boot/mx6_cubox-i/.
But that did not change anything for bootz, still it does not detect the
ramdisk
CuBox-i U-Boot > setenv bootargs root=/dev/mmcblk0p2 rootfstype=ext4 ro
rootwait console=ttymxc0,115200 ahci_imx.hotplug=1 cma=64M
CuBox-i U-Boot > ext4load mmc 0:2 0x10800000 vmlinuz
2853240 bytes read in 337 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 722 ms (14.4 MiB/s)
CuBox-i U-Boot > bootz 0x10800000 0x12800000 0x18000000
Kernel image @ 0x10800000 [ 0x000000 - 0x2b8978 ]
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid
CuBox-i U-Boot >
When I go back to the old bootm procedure, I miss the root filesystem:
[ 1.994877] scsi0 : ahci_platform
[ 2.027135] mmc0: no vqmmc regulator found
[ 2.027367] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff]
port 0x100 irq 71
[ 2.076513] mmc0: SDHCI controller on 2194000.usdhc [2194000.usdhc]
using ADMA
[ 2.344519] ata1: SATA link down (SStatus 0 SControl 300)
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top
... done.
Begin: Waiting for root file system ... done.
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/mmcblk0p2 does not exist. Dropping to a shell!
modprobe: module i8042 not found [ 33.035580] ehci_hcd: USB 2.0
'Enhanced' Host Controller (EHCI) Driver
in modules.dep
[ 33.043690] ehci-pci: EHCI PCI platform driver
[ 33.055625] ehci-orion: EHCI orion driver
modprobe: module uhci-hcd not found in modules.dep
[ 33.086192] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
The outputs seem to imply that there is not mmc device:
(initramfs) cat /proc/cmdline
root=/dev/mmcblk0p2 rootfstype=ext4 ro rootwait console=ttymxc0,115200
(initramfs) ls -l /dev
total 0
crw------- 1 0 0 10, 134 Jan 1 00:00 apm_bios
crw------- 1 0 0 10, 234 Jan 1 00:00 btrfs-control
drwxr-xr-x 2 0 0 1900 Jan 1 00:00 char
crw------- 1 0 0 5, 1 Jan 1 00:04 console
lrwxrwxrwx 1 0 0 11 Jan 1 00:00 core -> /proc/kcore
crw------- 1 0 0 10, 62 Jan 1 00:00 cpu_dma_latency
lrwxrwxrwx 1 0 0 13 Jan 1 00:00 fd -> /proc/self/fd
crw-rw-rw- 1 0 0 1, 7 Jan 1 00:00 full
drwxr-xr-x 2 0 0 60 Jan 1 00:00 input
crw-r--r-- 1 0 0 1, 11 Jan 1 00:00 kmsg
crw------- 1 0 0 10, 237 Jan 1 00:00 loop-control
crw-r----- 1 0 0 1, 1 Jan 1 00:00 mem
crw------- 1 0 0 10, 61 Jan 1 00:00 network_latency
crw------- 1 0 0 10, 60 Jan 1 00:00 network_throughput
crw-rw-rw- 1 0 0 1, 3 Jan 1 00:00 null
crw-r----- 1 0 0 1, 4 Jan 1 00:00 port
crw------- 1 0 0 108, 0 Jan 1 00:00 ppp
crw------- 1 0 0 10, 1 Jan 1 00:00 psaux
crw-rw-rw- 1 0 0 5, 2 Jan 1 00:00 ptmx
crw------- 1 0 0 251, 0 Jan 1 00:00 ptp0
drwxr-xr-x 2 0 0 0 Jan 1 00:00 pts
crw-rw-rw- 1 0 0 1, 8 Jan 1 00:00 random
lrwxrwxrwx 1 0 0 15 Jan 1 00:00 stderr ->
/proc/self/fd/2
lrwxrwxrwx 1 0 0 15 Jan 1 00:00 stdin ->
/proc/self/fd/0
lrwxrwxrwx 1 0 0 15 Jan 1 00:00 stdout ->
/proc/self/fd/1
crw-rw-rw- 1 0 0 5, 0 Jan 1 00:00 tty
crw--w---- 1 0 0 4, 0 Jan 1 00:00 tty0
crw--w---- 1 0 0 4, 1 Jan 1 00:00 tty1
crw--w---- 1 0 0 4, 10 Jan 1 00:00 tty10
crw--w---- 1 0 0 4, 11 Jan 1 00:00 tty11
crw--w---- 1 0 0 4, 12 Jan 1 00:00 tty12
crw--w---- 1 0 0 4, 13 Jan 1 00:00 tty13
crw--w---- 1 0 0 4, 14 Jan 1 00:00 tty14
crw--w---- 1 0 0 4, 15 Jan 1 00:00 tty15
crw--w---- 1 0 0 4, 16 Jan 1 00:00 tty16
crw--w---- 1 0 0 4, 17 Jan 1 00:00 tty17
crw--w---- 1 0 0 4, 18 Jan 1 00:00 tty18
crw--w---- 1 0 0 4, 19 Jan 1 00:00 tty19
crw--w---- 1 0 0 4, 2 Jan 1 00:00 tty2
crw--w---- 1 0 0 4, 20 Jan 1 00:00 tty20
crw--w---- 1 0 0 4, 21 Jan 1 00:00 tty21
crw--w---- 1 0 0 4, 22 Jan 1 00:00 tty22
crw--w---- 1 0 0 4, 23 Jan 1 00:00 tty23
crw--w---- 1 0 0 4, 24 Jan 1 00:00 tty24
crw--w---- 1 0 0 4, 25 Jan 1 00:00 tty25
crw--w---- 1 0 0 4, 26 Jan 1 00:00 tty26
crw--w---- 1 0 0 4, 27 Jan 1 00:00 tty27
crw--w---- 1 0 0 4, 28 Jan 1 00:00 tty28
crw--w---- 1 0 0 4, 29 Jan 1 00:00 tty29
crw--w---- 1 0 0 4, 3 Jan 1 00:00 tty3
crw--w---- 1 0 0 4, 30 Jan 1 00:00 tty30
crw--w---- 1 0 0 4, 31 Jan 1 00:00 tty31
crw--w---- 1 0 0 4, 32 Jan 1 00:00 tty32
crw--w---- 1 0 0 4, 33 Jan 1 00:00 tty33
crw--w---- 1 0 0 4, 34 Jan 1 00:00 tty34
crw--w---- 1 0 0 4, 35 Jan 1 00:00 tty35
crw--w---- 1 0 0 4, 36 Jan 1 00:00 tty36
crw--w---- 1 0 0 4, 37 Jan 1 00:00 tty37
crw--w---- 1 0 0 4, 38 Jan 1 00:00 tty38
crw--w---- 1 0 0 4, 39 Jan 1 00:00 tty39
crw--w---- 1 0 0 4, 4 Jan 1 00:00 tty4
crw--w---- 1 0 0 4, 40 Jan 1 00:00 tty40
crw--w---- 1 0 0 4, 41 Jan 1 00:00 tty41
crw--w---- 1 0 0 4, 42 Jan 1 00:00 tty42
crw--w---- 1 0 0 4, 43 Jan 1 00:00 tty43
crw--w---- 1 0 0 4, 44 Jan 1 00:00 tty44
crw--w---- 1 0 0 4, 45 Jan 1 00:00 tty45
crw--w---- 1 0 0 4, 46 Jan 1 00:00 tty46
crw--w---- 1 0 0 4, 47 Jan 1 00:00 tty47
crw--w---- 1 0 0 4, 48 Jan 1 00:00 tty48
crw--w---- 1 0 0 4, 49 Jan 1 00:00 tty49
crw--w---- 1 0 0 4, 5 Jan 1 00:00 tty5
crw--w---- 1 0 0 4, 50 Jan 1 00:00 tty50
crw--w---- 1 0 0 4, 51 Jan 1 00:00 tty51
crw--w---- 1 0 0 4, 52 Jan 1 00:00 tty52
crw--w---- 1 0 0 4, 53 Jan 1 00:00 tty53
crw--w---- 1 0 0 4, 54 Jan 1 00:00 tty54
crw--w---- 1 0 0 4, 55 Jan 1 00:00 tty55
crw--w---- 1 0 0 4, 56 Jan 1 00:00 tty56
crw--w---- 1 0 0 4, 57 Jan 1 00:00 tty57
crw--w---- 1 0 0 4, 58 Jan 1 00:00 tty58
crw--w---- 1 0 0 4, 59 Jan 1 00:00 tty59
crw--w---- 1 0 0 4, 6 Jan 1 00:00 tty6
crw--w---- 1 0 0 4, 60 Jan 1 00:00 tty60
crw--w---- 1 0 0 4, 61 Jan 1 00:00 tty61
crw--w---- 1 0 0 4, 62 Jan 1 00:00 tty62
crw--w---- 1 0 0 4, 63 Jan 1 00:00 tty63
crw--w---- 1 0 0 4, 7 Jan 1 00:00 tty7
crw--w---- 1 0 0 4, 8 Jan 1 00:00 tty8
crw--w---- 1 0 0 4, 9 Jan 1 00:00 tty9
crw------- 1 0 0 4, 64 Jan 1 00:00 ttyS0
crw------- 1 0 0 4, 65 Jan 1 00:00 ttyS1
crw------- 1 0 0 4, 66 Jan 1 00:00 ttyS2
crw------- 1 0 0 4, 67 Jan 1 00:00 ttyS3
crw------- 1 0 0 207, 16 Jan 1 00:00 ttymxc0
crw------- 1 0 0 10, 239 Jan 1 00:00 uhid
crw-rw-rw- 1 0 0 1, 9 Jan 1 00:00 urandom
crw------- 1 0 0 245, 0 Jan 1 00:00 usbmon0
crw------- 1 0 0 7, 0 Jan 1 00:00 vcs
crw------- 1 0 0 7, 1 Jan 1 00:00 vcs1
crw------- 1 0 0 7, 128 Jan 1 00:00 vcsa
crw------- 1 0 0 7, 129 Jan 1 00:00 vcsa1
crw------- 1 0 0 10, 63 Jan 1 00:00 vga_arbiter
crw-rw-rw- 1 0 0 1, 5 Jan 1 00:00 zero
(initramfs) cat /proc/modules
ohci_hcd 29032 0 - Live 0xbf0c2000
ehci_orion 2828 0 - Live 0xbf0be000
ehci_pci 2858 0 - Live 0xbf0ba000
ehci_hcd 42343 2 ehci_orion,ehci_pci, Live 0xbf0aa000
ahci_imx 3275 0 - Live 0xbf0a6000
libahci_platform 4215 1 ahci_imx, Live 0xbf0a0000
sdhci_esdhc_imx 9905 0 - Live 0xbf099000
libahci 20515 2 ahci_imx,libahci_platform, Live 0xbf08d000
libata 148145 3 ahci_imx,libahci_platform,libahci, Live 0xbf052000
sdhci_pltfm 3322 1 sdhci_esdhc_imx, Live 0xbf04d000
scsi_mod 163632 1 libata, Live 0xbf011000
sdhci 30953 2 sdhci_esdhc_imx,sdhci_pltfm, Live 0xbf004000
at803x 2405 0 - Live 0xbf000000
(initramfs)
I went back to the SPL-U-Boot.img from Gunnar
http://gwolf.org/node/3896
and at least the old boot method works again.
Rainer
--
Rainer Dorsch
http://bokomoko.de/
Reply to: