beaglebone (white) booting 3.10.2

Stumped on why the rootfs is not being loaded, here is kernel output:

Hit any key to stop autoboot: 0
mmc0 is current device
SD/MMC found on device 0
reading uEnv.txt
115 bytes read in 4 ms (27.3 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc …
Running uenvcmd …
4191128 bytes read in 601 ms (6.6 MiB/s)
8518 bytes read in 47 ms (176.8 KiB/s)
Kernel image @ 0x80200000 [ 0x000000 - 0x3ff398 ]

Flattened Device Tree blob at 80f80000

Booting using the fdt blob at 0x80f80000
Using Device Tree in place at 80f80000, end 80f85145

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.2 (tcmichals@tcmichals-RP829AV-ABA-d4790y) (gcc version 4.8.2 20130603 (prerelease) (crosstool-NG li3
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x BeagleBone
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] PERCPU: Embedded 8 pages/cpu @c08af000 s9792 r8192 d14784 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64768
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] allocated 524288 bytes of page_cgroup
[ 0.000000] please try ‘cgroup_disable=memory’ option if you don’t want memory cgroups
[ 0.000000] Memory: 255MB = 255MB total
[ 0.000000] Memory: 251468k/251468k available, 10676k 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 : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf800000 - 0xbfe00000 ( 6 MB)
[ 0.000000] .text : 0xc0008000 - 0xc05a2bfc (5739 kB)
[ 0.000000] .init : 0xc05a3000 - 0xc05d8640 ( 214 kB)
[ 0.000000] .data : 0xc05da000 - 0xc06485a0 ( 442 kB)
[ 0.000000] .bss : 0xc06485a0 - 0xc06a6538 ( 376 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000391] Calibrating delay loop… 548.86 BogoMIPS (lpj=2744320)
[ 0.049783] pid_max: default: 32768 minimum: 301
[ 0.050010] Security Framework initialized
[ 0.050113] Mount-cache hash table entries: 512
[ 0.054858] Initializing cgroup subsys memory
[ 0.054943] Initializing cgroup subsys blkio
[ 0.055074] CPU: Testing write buffer coherency:
[ 0.055129] ------------[ cut here ]------------
[ 0.055169] WARNING: at mm/vmalloc.c:128 vmap_page_range_noflush+0xe9/0x114()
[ 0.055183] Modules linked in:
[ 0.055208] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.2 #3
[ 0.055275] [] (unwind_backtrace+0x1/0x88) from [] (show_stack+0xb/0xc)
[ 0.055324] [] (show_stack+0xb/0xc) from [] (warn_slowpath_common+0x33/0x50)
[ 0.055357] [] (warn_slowpath_common+0x33/0x50) from [] (warn_slowpath_null+0xf/0x14)
[ 0.055389] [] (warn_slowpath_null+0xf/0x14) from [] (vmap_page_range_noflush+0xe9/0x114)
[ 0.055420] [] (vmap_page_range_noflush+0xe9/0x114) from [] (map_vm_area+0x1b/0x44)
[ 0.055447] [] (map_vm_area+0x1b/0x44) from [] (vmap+0x2f/0x44)
[ 0.055480] [] (vmap+0x2f/0x44) from [] (check_writebuffer_bugs+0x33/0xe8)
[ 0.055517] [] (check_writebuffer_bugs+0x33/0xe8) from [] (start_kernel+0x207/0x264)
[ 0.055545] [] (start_kernel+0x207/0x264) from [<8000807d>] (0x8000807d)
[ 0.055612] —[ end trace 1b75b31a2719ed1c ]—
[ 0.055647] failed, unable to map memory
[ 0.055647]
[ 0.056128] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.056422] Setting up static identity map for 0xc036a480 - 0xc036a4cc
[ 0.057764] Brought up 1 CPUs
[ 0.057787] SMP: Total of 1 processors activated (548.86 BogoMIPS).
[ 0.057801] CPU: All CPU(s) started in SVC mode.
[ 0.059070] devtmpfs: initialized
[ 0.126085] pinctrl core: initialized pinctrl subsystem
[ 0.126708] regulator-dummy: no parameters
[ 0.127305] NET: Registered protocol family 16
[ 0.128088] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.138898] OMAP GPIO hardware version 0.1
[ 0.147195] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.161237] bio: create slab at 0
[ 0.164097] SCSI subsystem initialized
[ 0.164494] usbcore: registered new interface driver usbfs
[ 0.164605] usbcore: registered new interface driver hub
[ 0.164885] usbcore: registered new device driver usb
[ 0.165760] omap_i2c 44e0b000.i2c: did not get pins for i2c error: -19
[ 0.166287] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 0.168586] DCDC1: at 1800 mV
[ 0.169816] vdd_mpu: 925 <–> 1325 mV at 1100 mV
[ 0.170929] vdd_core: 925 <–> 1150 mV at 1100 mV
[ 0.172014] LDO1: at 1800 mV
[ 0.173087] LDO2: at 3300 mV
[ 0.174170] LDO3: at 3300 mV
[ 0.175253] LDO4: at 3300 mV
[ 0.175935] tps65217 0-0024: TPS65217 ID 0xf version 1.1
[ 0.176168] media: Linux media interface: v0.10
[ 0.176290] Linux video capture interface: v2.00
[ 0.176442] pps_core: LinuxPPS API ver. 1 registered

Can you paste a full copy of your uEnv.txt ? Stabbing at air here, but can not see anything wrong in the kernel log above.

Well... mainline 3.10.2 with no patches right???

The am335x's mmc driver just went mainline with v3.11-rc1 (well most
of it anyways, the rest are being talked about on linux-omap)..

Regards,

Well… mainline 3.10.2 with no patches right???

The am335x’s mmc driver just went mainline with v3.11-rc1 (well most
of it anyways, the rest are being talked about on linux-omap)…

Regards,


Robert Nelson
http://www.rcn-ee.com/

Correct, no patches, just tried v3.11-rc2 did not even boot,. I’ll give the following (3.8) a try. http://eewiki.net/display/linuxonarm/BeagleBone#BeagleBone-LinuxKernel

Correct, no patches, just tried v3.11-rc2 did not even boot,. I’ll give the following (3.8) a try. http://eewiki.net/display/linuxonarm/BeagleBone#BeagleBone-LinuxKernel

compressing Linux… done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.8.13+ (tcmichals@tcmichals-RP829AV-ABA-d4790y) (gcc version 4.8.2 20130603 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2013.06 - Linaro GCC 2013.06) ) #1 SMP Sat 3
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x BeagleBone

[ 1.999645] registered taskstats version 1
[ 2.005272] mmcblk0: mmc0:1234 SA08G 7.28 GiB
[ 2.029166] mmcblk0: p1 p2
… yep mmc is working…

Next is this…

tarting network…
/etc/init.d/S93-am335x-pm-firmware-load: line 4: can’t create /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/loading: nonexistent directory
/etc/init.d/S93-am335x-pm-firmware-load: line 5: can’t create /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/data: nonexistent directory
/etc/init.d/S93-am335x-pm-firmware-load: line 6: can’t create /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/loading: nonexistent directory

In buildroot a init script runs to load the firmware, does the kernel do this? Is this needed in 3.8?

Load the PM CM3 firmware

echo 1 > /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/loading
cat /lib/firmware/am335x-pm-firmware.bin > /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/data
echo 0 > /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/loading