Hi all, I am having some trouble getting my root partition to mount.
I am a bit new to this and am likely making a simple mistake. If you could take a minute to look and see if you spot a mistake with my setup I would be very thankful. Background: I am working on my senior design project at the University of Texas at Dallas along with two other team members. We are creating an IOT alarm clock. I am creating a custom setup which uses the ti mainline kernel (v4.2.3), ti uboot (ti-u-boot-2015.07), busybox (1_23_stable), and qt (5.5.1). I am developing my software on the latest BeagleBone black. If you wish, you may view my source tree from github.com/Trekkie33/alm100 or clone it from [email protected]:Trekkie33/alm100.git to see all my configurations (sorry if it is a bit messy at the moment) I have got all of the individual components cross-compiling however I have not gotten past the initial kernel boot. Currently the root file system partition does not appear to be mounting using eMMC boot. My current theories as to where the problem lie are as follows (in order of probability) 1. Incorrect u-boot uEnv.txt settings (probably to do with the mmcroot) 2. Issue with device tree binary file (using am335x-boneblack.dtb) 3. Kernel configuration issue (I have already checked to ensure that eMMC drivers are enabled 4. Rootfs issue (does not seem to be likely as it does not look as though it is mounting) Notes: - I am using a customized version of Robert's scripts which create an sd-card (simplified by hard-coding file locations and settings) and am creating the eMMC disk in the 2 partition mode. - I am currently copying the MLO, uEnv.txt. dtb, etc to both the boot partition and rootpart/boot/ . I know these only need to be in one of these places but I have not yet had time to figure out where each one goes and my initial version of the create-sdcard script was not getting everything where it needed to go. I will sort this out later but I do not believe it will cause any issues in the mean time. My uEnv.txt file is as follows: loadaddr=0x82000000 > fdtaddr=0x88000000 > rdaddr=0x88080000 > kernel_file=zImage > fdtfile=am335x-boneblack.dtb > loadzimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${kernel_file} > loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${fdtfile} > console=ttyO0,115200n8 > mmcroot=/dev/mmcblk0p2 ro > mmcrootfstype=ext4 rootwait > mmcargs=setenv bootargs console=${console} mmcroot=${mmcroot} > rootfstype=${mmcrootfstype} ${optargs} > uenvcmd=run loadzimage; run loadfdt; run mmcargs; bootz ${loadaddr} - > ${fdtaddr} > optargs="debug init=/etc/preinit" I get the following upon boot: U-Boot 2015.07-00040-g3c1d651 (Oct 29 2015 - 22:14:29 -0500) > Watchdog enabled > I2C: ready > DRAM: 512 MiB > NAND: 0 MiB > MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 > reading uboot.env > ** Unable to read "uboot.env" from mmc0:1 ** > Using default environment > Net: <ethaddr> not set. Validating first E-fuse MAC > cpsw, usb_ether > Hit any key to stop autoboot: 0 > switch to partitions #0, OK > mmc0 is current device > SD/MMC found on device 0 > reading boot.scr > ** Unable to read file boot.scr ** > reading uEnv.txt > 498 bytes read in 3 ms (162.1 KiB/s) > Loaded env from uEnv.txt > Importing environment from mmc0 ... > Running uenvcmd ... > reading zImage > 3429864 bytes read in 197 ms (16.6 MiB/s) > reading am335x-boneblack.dtb > 30149 bytes read in 7 ms (4.1 MiB/s) > Kernel image @ 0x82000000 [ 0x000000 - 0x3455e8 ] > ## Flattened Device Tree blob at 88000000 > Booting using the fdt blob at 0x88000000 > Loading Device Tree to 8fff5000, end 8ffff5c4 ... OK > Starting 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 4.1.10- (root@MacBook) (gcc version 4.9.2 > (Ubuntu/Linaro 4.9.2-10ubuntu10) ) #1 SMP Fri Oct 30 22:44:55 CDT 2015 > [ 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 model: TI AM335x BeagleBone Black > [ 0.000000] cma: Reserved 16 MiB at 0x9e800000 > [ 0.000000] Memory policy: Data cache writeback > [ 0.000000] CPU: All CPU(s) started in SVC mode. > [ 0.000000] AM335X ES2.1 (sgx neon ) > [ 0.000000] PERCPU: Embedded 13 pages/cpu @dfa19000 s22976 r8192 d22080 > u53248 > [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. > Total pages: 129664 > [ 0.000000] Kernel command line: console=ttyO0,115200n8 > mmcroot=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait > [ 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: 483632K/523264K available (6205K kernel code, 739K > rwdata, 2172K rodata, 444K init, 8220K bss, 23248K reserved, 16384K > cma-reserv) > [ 0.000000] Virtual kernel memory layout: > [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) > [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 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 - 0xc08366a4 (8378 kB) > [ 0.000000] .init : 0xc0837000 - 0xc08a6000 ( 444 kB) > [ 0.000000] .data : 0xc08a6000 - 0xc095ec00 ( 739 kB) > [ 0.000000] .bss : 0xc0961000 - 0xc1168300 (8221 kB) > [ 0.000000] Running RCU self tests > [ 0.000000] Hierarchical RCU implementation. > [ 0.000000] RCU lockdep checking is enabled. > [ 0.000000] Additional per-CPU info printed with stalls. > [ 0.000000] RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1. > [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, 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] OMAP clockevent source: timer2 at 24000000 Hz > [ 0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every > 89478484971ns > [ 0.000037] clocksource timer1: mask: 0xffffffff max_cycles: > 0xffffffff, max_idle_ns: 79635851949 ns > [ 0.000082] OMAP clocksource: timer1 at 24000000 Hz > [ 0.000913] Console: colour dummy device 80x30 > [ 0.000970] Lock dependency validator: Copyright (c) 2006 Red Hat, > Inc., Ingo Molnar > [ 0.000979] ... MAX_LOCKDEP_SUBCLASSES: 8 > [ 0.000987] ... MAX_LOCK_DEPTH: 48 > [ 0.000994] ... MAX_LOCKDEP_KEYS: 8191 > [ 0.001001] ... CLASSHASH_SIZE: 4096 > [ 0.001008] ... MAX_LOCKDEP_ENTRIES: 32768 > [ 0.001016] ... MAX_LOCKDEP_CHAINS: 65536 > [ 0.001023] ... CHAINHASH_SIZE: 32768 > [ 0.001030] memory used by lock dependency info: 5167 kB > [ 0.001038] per task-struct memory footprint: 1152 bytes > [ 0.001062] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736) > [ 0.078885] pid_max: default: 32768 minimum: 301 > [ 0.079232] Security Framework initialized > [ 0.079393] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) > [ 0.079408] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 > bytes) > [ 0.082373] Initializing cgroup subsys blkio > [ 0.082417] Initializing cgroup subsys memory > [ 0.082510] Initializing cgroup subsys devices > [ 0.082605] Initializing cgroup subsys freezer > [ 0.082730] Initializing cgroup subsys perf_event > [ 0.082794] CPU: Testing write buffer coherency: ok > [ 0.084227] CPU0: thread -1, cpu 0, socket -1, mpidr 0 > [ 0.084348] Setting up static identity map for 0x80008280 - 0x800082f0 > [ 0.088506] Brought up 1 CPUs > [ 0.088531] SMP: Total of 1 processors activated (996.14 BogoMIPS). > [ 0.088541] CPU: All CPU(s) started in SVC mode. > [ 0.092206] devtmpfs: initialized > [ 0.122249] VFP support v0.3: implementor 41 architecture 3 part 30 > variant c rev 3 > [ 0.163196] omap_hwmod: tptc0 using broken dt data from edma > [ 0.163649] omap_hwmod: tptc1 using broken dt data from edma > [ 0.164081] omap_hwmod: tptc2 using broken dt data from edma > [ 0.172559] omap_hwmod: debugss: _wait_target_disable failed > [ 0.227792] clocksource jiffies: mask: 0xffffffff max_cycles: > 0xffffffff, max_idle_ns: 19112604462750000 ns > [ 0.230503] pinctrl core: initialized pinctrl subsystem > [ 0.235508] NET: Registered protocol family 16 > [ 0.241651] DMA: preallocated 256 KiB pool for atomic coherent > allocations > [ 0.243819] cpuidle: using governor ladder > [ 0.243847] cpuidle: using governor menu > [ 0.252358] OMAP GPIO hardware version 0.1 > [ 0.271679] No ATAGs? > [ 0.271715] hw-breakpoint: debug architecture 0x4 unsupported. > [ 0.313151] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver > [ 0.317348] SCSI subsystem initialized > [ 0.319496] omap_i2c 44e0b000.i2c: could not find pctldev for node > /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring > probe > [ 0.323754] Switched to clocksource timer1 > [ 0.472842] NET: Registered protocol family 2 > [ 0.475017] TCP established hash table entries: 4096 (order: 2, 16384 > bytes) > [ 0.475198] TCP bind hash table entries: 4096 (order: 5, 147456 bytes) > [ 0.476381] TCP: Hash tables configured (established 4096 bind 4096) > [ 0.476614] UDP hash table entries: 256 (order: 2, 20480 bytes) > [ 0.476787] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes) > [ 0.477702] NET: Registered protocol family 1 > [ 0.479449] RPC: Registered named UNIX socket transport module. > [ 0.479474] RPC: Registered udp transport module. > [ 0.479485] RPC: Registered tcp transport module. > [ 0.479494] RPC: Registered tcp NFSv4.1 backchannel transport module. > [ 0.481609] CPU PMU: Failed to parse /pmu/interrupt-affinity[0] > [ 0.481706] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 > counters available > [ 0.486373] futex hash table entries: 256 (order: 2, 16384 bytes) > [ 0.486675] audit: initializing netlink subsys (disabled) > [ 0.486945] audit: type=2000 audit(0.480:1): initialized > [ 0.491750] VFS: Disk quotas dquot_6.6.0 > [ 0.491898] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 > bytes) > [ 0.494577] NFS: Registering the id_resolver key type > [ 0.495017] Key type id_resolver registered > [ 0.495034] Key type id_legacy registered > [ 0.495227] jffs2: version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat, > Inc. > [ 0.500239] io scheduler noop registered > [ 0.500271] io scheduler deadline registered > [ 0.500325] io scheduler cfq registered (default) > [ 0.502317] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 > size 568 > [ 0.504992] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled > [ 0.510779] omap_uart 44e09000.serial: no wakeirq for uart0 > [ 0.511438] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 154, > base_baud = 3000000) is a OMAP UART0 > [ 1.207090] console [ttyO0] enabled > [ 1.241195] brd: module loaded > [ 1.262174] loop: module loaded > [ 1.268065] mtdoops: mtd device (mtddev=name/number) must be supplied > [ 1.280388] mousedev: PS/2 mouse device common for all mice > [ 1.286352] i2c /dev entries driver > [ 1.291688] omap_hsmmc 48060000.mmc: Got CD GPIO > [ 1.374046] ledtrig-cpu: registered to indicate activity on CPUs > [ 1.381454] oprofile: using arm/armv7 > [ 1.386257] Initializing XFRM netlink socket > [ 1.390877] NET: Registered protocol family 17 > [ 1.395688] NET: Registered protocol family 15 > [ 1.400717] Key type dns_resolver registered > [ 1.405445] omap_voltage_late_init: Voltage driver support not added > [ 1.412097] sr_dev_init: No voltage domain specified for smartreflex0. > Cannot initialize > [ 1.420591] sr_dev_init: No voltage domain specified for smartreflex1. > Cannot initialize > [ 1.430155] ThumbEE CPU extension supported. > [ 1.434740] Registering SWP/SWPB emulation handler > [ 1.439761] SmartReflex Class3 initialized > [ 1.474298] mmc0: host does not support reading read-only switch, > assuming write-enable > [ 1.487299] mmc0: new high speed SDHC card at address aaaa > [ 1.495782] mmcblk0: mmc0:aaaa SL32G 28.7 GiB > [ 1.507349] mmcblk0: p1 p2 > [ 1.527444] tps65217 0-0024: TPS65217 ID 0xe version 1.2 > [ 1.533180] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz > [ 1.587590] mmc1: MAN_BKOPS_EN bit is not set > [ 1.596978] mmc1: new high speed MMC card at address 0001 > [ 1.604058] mmcblk1: mmc1:0001 MMC04G 3.60 GiB > [ 1.609213] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6 > [ 1.615673] davinci_mdio 4a101000.mdio: detected phy mask fffffffe > [ 1.624005] mmcblk1boot0: mmc1:0001 MMC04G partition 1 2.00 MiB > [ 1.632240] mmcblk1boot1: mmc1:0001 MMC04G partition 2 2.00 MiB > [ 1.641196] libphy: 4a101000.mdio: probed > [ 1.645533] davinci_mdio 4a101000.mdio: phy[0]: device > 4a101000.mdio:00, driver SMSC LAN8710/LAN8720 > [ 1.656385] cpsw 4a100000.ethernet: Detected MACID = 6c:ec:eb:ab:af:b3 > [ 1.666283] hctosys: unable to open rtc device (rtc0) > [ 1.671582] sr_init: No PMIC hook to init smartreflex > [ 1.677219] sr_init: platform driver register failed for SR > [ 1.706697] mmcblk1: p1 p2 > [ 1.716880] Waiting for root device ... > [ 137.453780] random: nonblocking pool is initialized -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
