Build appears good but card won't boot

Chris Miller (MESL) chris.miller at mesl.co.uk
Thu Aug 21 13:00:27 CEST 2014


Firstly my apologies for not subscribing - I thought I had, but probably 
pressed a wrong button somewhere.

Thanks for your quick response

Yes, it is only initramfs which needs to be changed to bring it to life.

Full dump from serial port is attached as text file, but last few lines 
read:

[    4.346573] registered taskstats version 1
[    4.352907] console [netcon0] enabled
[    4.356590] netconsole: network logging started
ø[    4.365225] Freeing unused kernel memory: 160K (c04ce000 - c04f6000)
[    4.373845] Failed to execute /init
[    4.379220] Kernel panic - not syncing: No init found.  Try passing 
init= option to kernel. See Linux Documentation/init.txt for guidance.
[    4.391675] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.19 #1
[    4.397556] [<c0013de8>] (unwind_backtrace+0x0/0xf4) from 
[<c00120e8>] (show_stack+0x10/0x14)
[    4.406103] [<c00120e8>] (show_stack+0x10/0x14) from [<c036ed18>] 
(panic+0x90/0x1f4)
[    4.413858] [<c036ed18>] (panic+0x90/0x1f4) from [<c036e4dc>] 
(kernel_init+0xb8/0xe4)
[    4.421699] [<c036e4dc>] (kernel_init+0xb8/0xe4) from [<c000e288>] 
(ret_from_fork+0x14/0x2c)

Does this help point up what I've done wrong?

With many thanks,

Chris
-------- Original Message --------
*Subject: *Re: Build appears good but card won't boot
*From: *Ronny Nilsson <rln-nard at arbetsmyra.dyndns.org>
*To: *chris.miller at mesl.co.uk
*CC: *nard at arbetsmyra.dyndns.org, "nf at file.mesl.co.uk" <nf at file.mesl.co.uk>
*Date: *21/08/2014 09:12
> Hi Chris
> When you copy files from the good card to you "bad", is it enough to
> copy only initramfs.cpio.gz? No need for "zImage"? In that case the
> kernel probably starts but fails to recognize the filesystem. The
> console messages one might see in the HDMI output of other distributions
> at boot are disabled by default in Nard, however they are still
> available in the serial port for diagnostics. Would it be possible for
> you to get a USB-UART converter and connect it to the expansion pin
> header? The kernel will likely print the errors there. (Remember to get
> the 3.3V version).
> /Ronny
>
> ---------------------------------------------------------
>> Hi there,
>>
>> I've run the 'make skeleton' build process in a Fedora 20 32bit VM
>> and all appears to go fine (apart from many many _warnings _about
>> comparing signed with unsigned, no fatal _errors_), and I get the
>> image files such as sdcard.img.gz in nard/images.
>>
>> My SD card reader comes up as sdd sdd1 sdd2 rather than mmcblk0
>>
>> If I use the downloaded image nard-sdcard.img.gz in the command
>> zcat nard-sdcard.img.gz >/dev/dd
>> sync
>> I can boot the resulting SD card in a R-Pi: ethernet comes up, and I
>> can log in via ssh.
>>
>> However, if I use the home-built one, the zcat command appears to
>> work, and I can then mount the SD card and see the expected list of
>> files on the SD card - almost identical to a card made from
>> nard-sdcard.img.gz. But on power up, the raspberry pi gives one green
>> flash on the sd card activity light (presumably attempting to load
>> bootcode.bin), then nothing further happens on LEDs,  ethernet or
>> (HDMI-attached) screen.  I am using the same physical SD card for
>> both loads.
>>
>> I can "mend" the broken card by copying initramfs.cpip.gz and
>> initramfs.cpio.gz.md5sum from a "good" card to the "broken" card, so
>> it seems likely that the build process is not working correctly.
>>
>> uname -a returns:
>> Linux localhost.localdomain 3.15.10-200.fc20.i686+PAE #1 SMP Thu Aug
>> 14 15:58:37 UTC 2014 i686 i686 i386 GNU/Linux
>>
>> Where should I start to look for my mistake?
>>
>> Thanks in advance for your suggestions,
>>
>> Chris Miller

-------------- next part --------------
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.10.19 (rln at gabby) (gcc version 4.4.5 (crosstool-NG 1.18.0) ) #1 PREEMPT Tue Jun 24 02:22:57 CEST 2014
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 125984
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xe bcm2708.serial=0xe8e37fca smsc95xx.macaddr=B8:27:EB:E3:7F:CA sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1fa00000 vc_mem.mem_size=0x20000000  smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 sdhci-bcm2708.allow_highspeed=0 console=ttyAMA0,115200 rw
[    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: 496MB = 496MB total
[    0.000000] Memory: 475800k/475800k available, 32104k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xdf800000 - 0xff000000   ( 504 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdf000000   ( 496 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04cdcc8   (4888 kB)
[    0.000000]       .init : 0xc04ce000 - 0xc04f655c   ( 162 kB)
[    0.000000]       .data : 0xc04f8000 - 0xc0537b90   ( 255 kB)
[    0.000000]        .bss : 0xc0537b90 - 0xc09baa18   (4620 kB)
[    0.000000] NR_IRQS:330
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] Switching to timer-based delay loop
[    0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.000000] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000000] ... MAX_LOCK_DEPTH:          48
[    0.000000] ... MAX_LOCKDEP_KEYS:        8191
[    0.000000] ... CLASSHASH_SIZE:          4096
[    0.000000] ... MAX_LOCKDEP_ENTRIES:     16384
[    0.000000] ... MAX_LOCKDEP_CHAINS:      32768
[    0.000000] ... CHAINHASH_SIZE:          16384
[    0.000000]  memory used by lock dependency info: 3679 kB
[    0.000000]  per task-struct memory footprint: 1152 bytes
[    0.000589] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.000625] pid_max: default: 32768 minimum: 301
[    0.001030] Mount-cache hash table entries: 512
[    0.003232] CPU: Testing write buffer coherency: ok
[    0.004362] Setting up static identity map for 0xc03777a8 - 0xc03777e0
[    0.009742] devtmpfs: initialized
[    0.032805] NET: Registered protocol family 16
[    0.037665] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.039734] bcm2708.uart_clock = 0
[    0.045812] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.045841] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.045864] mailbox: Broadcom VideoCore Mailbox driver
[    0.046119] bcm2708_vcio: mailbox at f200b880
[    0.046527] bcm_power: Broadcom power driver
[    0.046618] bcm_power_open() -> 0
[    0.046643] bcm_power_request(0, 8)
[    0.547385] bcm_mailbox_read -> 00000080, 0
[    0.547418] bcm_power_request -> 0
[    0.547438] Serial: AMBA PL011 UART driver
[    0.548159] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[    0.881333] console [ttyAMA0] enabled
[    0.954650] bio: create slab <bio-0> at 0
[    0.961528] SCSI subsystem initialized
[    0.965982] usbcore: registered new interface driver usbfs
[    0.971682] usbcore: registered new interface driver hub
[    0.977515] usbcore: registered new device driver usb
[    0.985778] Switching to clocksource stc
[    1.038993] NET: Registered protocol family 2
[    1.046018] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    1.053935] TCP bind hash table entries: 4096 (order: 5, 147456 bytes)
[    1.061689] TCP: Hash tables configured (established 4096 bind 4096)
[    1.068280] TCP: reno registered
[    1.071634] UDP hash table entries: 256 (order: 2, 20480 bytes)
[    1.077736] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[    1.085463] NET: Registered protocol family 1
[    1.091461] RPC: Registered named UNIX socket transport module.
[    1.097405] RPC: Registered udp transport module.
[    1.102274] RPC: Registered tcp transport module.
[    1.106991] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.114448] Unpacking initramfs...
[    3.407143] Freeing initrd memory: 17696K (c1100000 - c2248000)
[    3.414127] bcm2708_dma: DMA manager at f2007000
[    3.419094] bcm2708_gpio: bcm2708_gpio_probe c0506830
[    3.426232] vc-mem: phys_addr:0x00000000 mem_base=0x1fa00000 mem_size:0x20000000(512 MiB)
[    3.584873] VFS: Disk quotas dquot_6.5.2
[    3.588916] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.597691] msgmni has been set to 963
[    3.606076] Key type asymmetric registered
[    3.610748] Asymmetric key parser 'x509' registered
[    3.615898] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    3.623617] io scheduler noop registered (default)
[    3.628434] io scheduler deadline registered
[    3.632915] io scheduler cfq registered
[    3.644419] BCM2708FB: allocated DMA memory 41c00000
[    3.649404] BCM2708FB: allocated DMA channel 0 @ f2007000
[    3.676198] loop: module loaded
[    3.681181] vchiq: vchiq_init_state: slot_zero = 0xdf804000, is_master = 0
[    3.690543] Loading iSCSI transport class v2.0-870.
[    3.698730] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    3.905237] Core Release: 2.80a
[    3.908408] Setting default values for core params
[    3.913383] Finished setting default values for core params
[    4.119340] Using Buffer DMA mode
[    4.122730] Periodic Transfer Interrupt Enhancement - disabled
[    4.128570] Multiprocessor Interrupt Enhancement - disabled
[    4.134201] OTG VER PARAM: 0, OTG VER FLAG: 0
[    4.138577] Dedicated Tx FIFOs mode
[    4.142644] dwc_otg bcm2708_usb: DWC OTG Controller
[    4.148035] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    4.155448] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    4.161038] Init: Port Power? op_state=1
[    4.164969] Init: Power Port (0)
[    4.168899] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.175785] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.183077] usb usb1: Product: DWC OTG Controller
[    4.187795] usb usb1: Manufacturer: Linux 3.10.19 dwc_otg_hcd
[    4.193607] usb usb1: SerialNumber: bcm2708_usb
[    4.200868] hub 1-0:1.0: USB hub found
[    4.204685] hub 1-0:1.0: 1 port detected
[    4.211213] sdhci: Secure Digital Host Controller Interface driver
[    4.217398] sdhci: Copyright(c) Pierre Ossman
[    4.222308] sdhci: Enable low-latency mode
[    4.269952] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    4.278115] mmc0: BCM2708 SDHC host at 0x20300000 DMA 4 IRQ 20
[    4.287149] sdhci-pltfm: SDHCI platform and OF driver helper
[    4.297161] ledtrig-cpu: registered to indicate activity on CPUs
[    4.307886] TCP: cubic registered
[    4.311439] NET: Registered protocol family 17
[    4.323062] Key type dns_resolver registered
[    4.330085] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    4.346573] registered taskstats version 1
[    4.352907] console [netcon0] enabled
[    4.356590] netconsole: network logging started
ø[    4.365225] Freeing unused kernel memory: 160K (c04ce000 - c04f6000)
[    4.373845] Failed to execute /init
[    4.379220] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    4.391675] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.19 #1
[    4.397556] [<c0013de8>] (unwind_backtrace+0x0/0xf4) from [<c00120e8>] (show_stack+0x10/0x14)
[    4.406103] [<c00120e8>] (show_stack+0x10/0x14) from [<c036ed18>] (panic+0x90/0x1f4)
[    4.413858] [<c036ed18>] (panic+0x90/0x1f4) from [<c036e4dc>] (kernel_init+0xb8/0xe4)
[    4.421699] [<c036e4dc>] (kernel_init+0xb8/0xe4) from [<c000e288>] (ret_from_fork+0x14/0x2c)



More information about the Nard mailing list