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

Re: DreamPlug-jessie troubles



On Sun, 2014-10-19 at 13:31 +0000, Clint Adams wrote:
[...]

All looks to be the same.

> If I boot the wheezy kernel with initrd and no dtb it boots fine.
> 
> If I boot the wheezy kernel with initrd and either the 3.16-2-kirkwood
> dtb (10037 octets) or the 3.2.0-4-kirkwood dtb (976 octets), it
> panics due to lack of root device just like with the jessie kernel.

flash-kernel will append a dtb by default, which I think will take
precedence over anything you provide via the bootloader. When you say
"no dtb" do you just mean "didn't give one in the bootloader"? Do your
kernels have one appended? IIRC dreamplug never had board-file support
so a dtb must be coming from somewhere.

The uImage header is 64 bytes so the uImage should either be
sizeof(vmlinuz)+64 or sizeof(vmlinuz)+sizeof(dtb)+64.

OOI what happens if you boot the Jessie kernel without a
bootloader-provided dtb?

> ## Booting kernel from Legacy Image at 06400000 ...
>    Image Name:   kernel 3.16-2-kirkwood
>    Created:      2014-10-19  13:11:29 UTC
>    Image Type:   ARM Linux Kernel Image (uncompressed)
>    Data Size:    2102445 Bytes = 2 MiB
>    Load Address: 00008000
>    Entry Point:  00008000
>    Verifying Checksum ... OK
> ## Loading init Ramdisk from Legacy Image at 06800000 ...
>    Image Name:   ramdisk 3.16-2-kirkwood
>    Created:      2014-10-19  13:11:31 UTC
>    Image Type:   ARM Linux RAMDisk Image (uncompressed)
>    Data Size:    9907556 Bytes = 9.4 MiB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
> ## Flattened Device Tree blob at 00c00000
>    Booting using the fdt blob at 0xc00000
>    Loading Kernel Image ... OK
>    Loading Ramdisk to 0f68d000, end 0ffffd64 ... OK
>    Loading Device Tree to 0f687000, end 0f68c734 ... OK

This is interesting, on my system I rely on the appended DTB (which
flash-kernel does automatically) rather than loading anything by hand.
My u-boot env is:
        autoload=no
        baudrate=115200
        bootargs=console=ttyS0,115200n8 rootwait root=/dev/sda2
        bootcmd=run clear_kernel_in_mem; usb start;run bootcmd_load;run bootcmd_args;bootm 0x00800000 0x01100000
        bootcmd_args=setenv bootargs console=ttyS0,115200n8 rootwait root=/dev/sdb2
        bootcmd_load=run bootcmd_uImage;run bootcmd_uInitrd
        bootcmd_uImage=ext2load usb 1:1 0x00800000 /uImage
        bootcmd_uInitrd=ext2load usb 1:1 0x01100000 /uInitrd
        bootdelay=3
        clear_kernel_in_mem=echo Purging kernel in memory; mw 0x6400000 0x0 0x300000
        dbg=set autoload no;dhcp;setenv serverip 192.168.1.7;tftpboot 0x00800000 dbg.scr;source 0x00800000
        di=set autoload no;dhcp;set serverip 192.168.1.7;tftp dreamplug/di.scr;imi;source
        didev=set autoload no;dhcp;set serverip 192.168.1.7;tftp dreamplug/didev.scr;imi;source
        dnsip=192.168.1.1
        eth1addr=F0:AD:4E:00:CB:FE
        ethact=egiga0
        ethaddr=F0:AD:4E:00:CB:FD
        fileaddr=800000
        filesize=129
        gatewayip=192.168.1.1
        ipaddr=192.168.1.189
        netmask=255.255.255.0
        rescue=set autoload no;dhcp;setenv serverip 192.168.1.7;tftpboot 0x00800000 dreamplug/rescue.scr;source 0x00800000"
        serverip=192.168.1.7
        stderr=serial
        stdin=serial
        stdout=serial

IIRC this is mostly the factory supplied env (although I'm running
current Debian's u-boot, version 2014.10-rc3+dfsg1-1).

The default env built into Debian's u-boot (i.e. what you get out of
"env default -a") differs from what either of us have AFAICT. It loads a
kernel from FAT and doesn't load an initrd or dtb at all.

> Starting kernel ...
> 
> Uncompressing Linux... done, booting the kernel.
> [    0.000000] Booting Linux on physical CPU 0x0
> [    0.000000] Initializing cgroup subsys cpuset
> [    0.000000] Initializing cgroup subsys cpu
> [    0.000000] Initializing cgroup subsys cpuacct
> [    0.000000] Linux version 3.16-2-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.3 (Debian 4.8.3-11) ) #1 Debian 3.16.3-2 (2014-09-20)
> [    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
> [    0.000000] CPU: VIVT data cache, VIVT instruction cache
> [    0.000000] Machine model: Globalscale Technologies Dreamplug
> [    0.000000] bootconsole [earlycon0] enabled
> [    0.000000] Memory policy: Data cache writeback
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
> [    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk

No root=?

Do you have any local overrides to the flash-kernel db? In particular to
the Bootloader-Sets-Incorrect-Root setting? (Previously called
Bootloader-Sets-Root).

This isn't your current issue, since it's not seeing any device so the
root= would be useless, but it would perhaps be the next issue you would
hit...

> [    0.597665] registered taskstats version 1
> [    0.602778] rtc-mv f1010300.rtc: setting system clock to 2014-10-19 13:13:53 UTC (1413724433)
> [    0.612428] List of all partitions:
> [    0.615961] 1f00             512 mtdblock0  (driver?)
> [    0.621053] 1f01              64 mtdblock1  (driver?)
> [    0.626145] 1f02              64 mtdblock2  (driver?)
> [    0.631242] No filesystem could mount root, tried:
> [    0.636156] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

This doesn't appear to have actually used your initrd, despite you
having loaded one above, in particular there is no "Unpacking
initramfs..." message and none of the expected logging from the
initramfs.

I'm not sure why this should be. Seeing your u-boot bootcmd might be
helpful/informative.

I've pasted my dmesg (without the sda errors) below, FWIW. They look
pretty much the same up to the point where yours panics and mine loads
the initramfs.

Ian.

       scanning usb for storage devices... 2 Storage Device(s) found
2102509 bytes read in 299 ms (6.7 MiB/s)
2921763 bytes read in 413 ms (6.7 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   kernel 3.16-2-kirkwood
   Created:      2014-10-11  11:03:52 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2102445 Bytes = 2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   ramdisk 3.16-2-kirkwood
   Created:      2014-10-11  11:03:53 UTC
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    2921699 Bytes = 2.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16-2-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.3 (Debian 4.8.3-11) ) #1 Debian 3.16.3-2 (2014-09-20)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Globalscale Technologies Dreamplug
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootwait root=/dev/sdb2
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 510476K/524288K available (3948K kernel code, 360K rwdata, 1444K rodata, 282K init, 293K bss, 13812K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc054c43c   (5394 kB)
[    0.000000]       .init : 0xc054d000 - 0xc0593844   ( 283 kB)
[    0.000000]       .data : 0xc0594000 - 0xc05ee3e8   ( 361 kB)
[    0.000000]        .bss : 0xc05ee3e8 - 0xc06379c0   ( 294 kB)
[    0.000000] NR_IRQS:114
[    0.000016] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    0.000319] Console: colour dummy device 80x30
[    0.000345] Calibrating delay loop... 1185.79 BogoMIPS (lpj=2371584)
[    0.024041] pid_max: default: 32768 minimum: 301
[    0.024166] Security Framework initialized
[    0.024215] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.024291] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.024309] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.025060] Initializing cgroup subsys memory
[    0.025101] Initializing cgroup subsys devices
[    0.025152] Initializing cgroup subsys freezer
[    0.025176] Initializing cgroup subsys net_cls
[    0.025220] Initializing cgroup subsys blkio
[    0.025256] Initializing cgroup subsys perf_event
[    0.025276] Initializing cgroup subsys net_prio
[    0.025369] CPU: Testing write buffer coherency: ok
[    0.025468] ftrace: allocating 16494 entries in 33 pages
[    0.049736] Setting up static identity map for 0x3bbee0 - 0x3bbf38
[    0.053224] devtmpfs: initialized
[    0.054971] pinctrl core: initialized pinctrl subsystem
[    0.055477] regulator-dummy: no parameters
[    0.058688] NET: Registered protocol family 16
[    0.059082] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.060028] cpuidle: using governor ladder
[    0.060120] cpuidle: using governor menu
[    0.060340] Feroceon L2: Enabling L2
[    0.060381] Feroceon L2: Cache support initialised.
[    0.060722] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.060776] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.065066] No ATAGs?
[    0.070366] Switched to clocksource orion_clocksource
[    0.092537] NET: Registered protocol family 2
[    0.093476] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.093536] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.093587] TCP: Hash tables configured (established 4096 bind 4096)
[    0.093644] TCP: reno registered
[    0.093656] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.093676] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.093868] NET: Registered protocol family 1
[    0.094149] Unpacking initramfs...
[    0.345644] Freeing initrd memory: 2848K (c1101000 - c13c9000)
[    0.347207] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.347292] audit: initializing netlink subsys (disabled)
[    0.347357] audit: type=2000 audit(0.340:1): initialized
[    0.348270] zbud: loaded
[    0.348531] VFS: Disk quotas dquot_6.5.2
[    0.348580] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.348683] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.348913] msgmni has been set to 1002
[    0.350892] alg: No test for stdrng (krng)
[    0.351000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.351198] io scheduler noop registered
[    0.351341] io scheduler cfq registered (default)
[    0.352558] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.353922] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.370494] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.390478] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.390654] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.410478] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.430477] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.430906] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.432161] console [ttyS0] disabled
[    0.432214] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[    0.935783] console [ttyS0] enabled
[    0.946043] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    0.950994] 3 ofpart partitions found on MTD device spi0.0
[    0.956520] Creating 3 MTD partitions on "spi0.0":
[    0.961346] 0x000000000000-0x000000080000 : "u-boot"
[    0.967550] 0x000000100000-0x000000110000 : "u-boot env"
[    0.974028] 0x000000180000-0x000000190000 : "dtb"
[    0.980388] mousedev: PS/2 mouse device common for all mice
[    0.986608] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    0.993645] i2c /dev entries driver
[    0.998553] ledtrig-cpu: registered to indicate activity on CPUs
[    1.004827] TCP: cubic registered
[    1.008187] NET: Registered protocol family 17
[    1.012691] mpls_gso: MPLS GSO support
[    1.017211] registered taskstats version 1
[    1.022353] rtc-mv f1010300.rtc: setting system clock to 2014-10-19 13:39:08 UTC (1413725948)
[    1.032776] Freeing unused kernel memory: 280K (c054d000 - c0593000)
Loading, please wait...
[    1.104615] systemd-udevd[50]: starting version 215
[    1.120239] random: systemd-udevd urandom read with 1 bits of entropy available
[    1.262160] usbcore: registered new interface driver usbfs
[    1.290267] usbcore: registered new interface driver hub
[    1.317616] usbcore: registered new device driver usb
[    1.338999] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.376566] ehci-orion: EHCI orion driver
[    1.397189] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.418120] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    1.426017] orion-ehci f1050000.ehci: irq 19, io mem 0xf1050000
[    1.442398] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    1.448630] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.455472] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.462737] usb usb1: Product: EHCI Host Controller
[    1.467644] usb usb1: Manufacturer: Linux 3.16-2-kirkwood ehci_hcd
[    1.473860] usb usb1: SerialNumber: f1050000.ehci
[    1.479797] hub 1-0:1.0: USB hub found
[    1.483618] hub 1-0:1.0: 1 port detected
Begin: Loading essential drivers ... [    1.520120] SCSI subsystem initialized
[    1.529870] usbcore: registered new interface driver usb-storage
modprobe: module of:NocpT<NULL>Csimple-bus not found in modules.dep
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Waiting for root file system ... [    1.798420] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    1.935153] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101
[    1.941912] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.949103] usb 1-1: Product: USB 2.0 Hub
[    1.957471] hub 1-1:1.0: USB hub found
[    1.961400] hub 1-1:1.0: 4 ports detected
[    2.238663] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    2.351028] usb 1-1.1: New USB device found, idVendor=1a40, idProduct=0101
[    2.357958] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.365320] usb 1-1.1: Product: USB 2.0 Hub
[    2.373845] hub 1-1.1:1.0: USB hub found
[    2.378028] hub 1-1.1:1.0: 4 ports detected
[    2.470653] usb 1-1.4: new full-speed USB device number 4 using orion-ehci
[    2.583780] usb 1-1.4: New USB device found, idVendor=0d8c, idProduct=000c
[    2.590716] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.598087] usb 1-1.4: Product: C-Media USB Headphone Set  
[    2.682663] usb 1-1.1.1: new high-speed USB device number 5 using orion-ehci
[    2.786282] usb 1-1.1.1: New USB device found, idVendor=05e3, idProduct=0723
[    2.793392] usb 1-1.1.1: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[    2.800938] usb 1-1.1.1: Product: USB Storage
[    2.805328] usb 1-1.1.1: Manufacturer: Generic 
[    2.814749] usb-storage 1-1.1.1:1.0: USB Mass Storage device detected
[    2.821509] usb-storage 1-1.1.1:1.0: Quirks match for vid 05e3 pid 0723: 8000
[    2.828774] scsi0 : usb-storage 1-1.1.1:1.0
[    2.906651] usb 1-1.1.2: new high-speed USB device number 6 using orion-ehci
[    3.010278] usb 1-1.1.2: New USB device found, idVendor=05e3, idProduct=0723
[    3.017384] usb 1-1.1.2: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[    3.024927] usb 1-1.1.2: Product: USB Storage
[    3.029319] usb 1-1.1.2: Manufacturer: Generic 
[    3.038877] usb-storage 1-1.1.2:1.0: USB Mass Storage device detected
[    3.045588] usb-storage 1-1.1.2:1.0: Quirks match for vid 05e3 pid 0723: 8000
[    3.055604] scsi1 : usb-storage 1-1.1.2:1.0
[    3.836245] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ: 0 ANSI: 0
[    4.006440] sd 0:0:0:0: [sda] 7744512 512-byte logical blocks: (3.96 GB/3.69 GiB)
[    4.015044] sd 0:0:0:0: [sda] Write Protect is off
[    4.020916] sd 0:0:0:0: [sda] No Caching mode page found
[    4.026274] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    4.056044]  sda: sda1 sda2 sda3 < sda5 >
[    4.062205] scsi 1:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ: 0 ANSI: 0
[    4.077078] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    4.234185] sd 1:0:0:0: [sdb] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)
[    4.242920] sd 1:0:0:0: [sdb] Write Protect is off
[    4.248793] sd 1:0:0:0: [sdb] No Caching mode page found
[    4.254156] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[    4.277297]  sdb: sdb1 sdb2 sdb3 < sdb5 >
[    4.290712] sd 1:0:0:0: [sdb] Attached SCSI removable disk
done.
Begin: Running /scripts/local-premount ... done.
[    4.681192] EXT4-fs (sdb2): INFO: recovery required on readonly filesystem
[    4.688150] EXT4-fs (sdb2): write access will be enabled during recovery
[    5.026769] EXT4-fs (sdb2): recovery complete
[    5.038553] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... [    8.656288] sd 0:0:0:0: [sda] Device not ready
[    8.660781] sd 0:0:0:0: [sda]  
[    8.663943] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[    8.669561] sd 0:0:0:0: [sda]  
[    8.672722] Sense Key : Not Ready [current] 
[    8.677044] sd 0:0:0:0: [sda]  
[    8.680216] Add. Sense: Medium not present
[    8.684366] sd 0:0:0:0: [sda] CDB: 
[    8.687877] Read(10): 28 00 00 76 2b c0 00 00 08 00
[    8.692884] end_request: I/O error, dev sda, sector 7744448
[    8.698498] Buffer I/O error on device sda, logical block 968056
[    8.708027] sd 0:0:0:0: [sda] Device not ready
[... lots more sd 0:0:0:0: errors...]

done.
[   10.680570] random: nonblocking pool is initialized
[   11.000392] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[   11.014074] systemd[1]: Detected architecture 'arm'.

Welcome to Debian GNU/Linux jessie/sid!




Reply to: