This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5718: Ramfs kernel panic

Part Number: AM5718


Tool/software: Linux

Hi!
Made a build on these links 

https://www.digikey.com/eewiki/display/linuxonarm/BeagleBoard-X15



wrote to sd card (8 GB, 32 GB) and got a kernel panic (picture below)

Full text in file
Instead of the tiny flasher filesystem, I used arago-tiny-image.

Thanks!

U-Boot SPL 2017.01-00359-g590c7d7fe1-dirty (Jul 01 2019 - 16:19:05)
DRA722-GP ES2.0
Trying to boot from MMC1
reading uboot.env

** Unable to read "uboot.env" from mmc0:1 **
Using default environment

reading u-boot.img
reading u-boot.img
reading u-boot.img
reading u-boot.img


U-Boot 2017.01-00359-g590c7d7fe1-dirty (Jul 01 2019 - 16:19:05 +0500)

CPU  : DRA722-GP ES2.0
Model: TI AM5728 BeagleBoard-X15
Board: AM571x IDK REV 1.3B
DRAM:  1 GiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
reading uboot.env

** Unable to read "uboot.env" from mmc0:1 **
Using default environment

setup_board_eeprom_env: am571x_idk
SCSI:  SATA link 0 timeout.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
scanning bus for devices...
Found 0 device(s).
Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw
Press SPACE to abort autoboot in 2 seconds
usb_boot is currently disabled
scsi_boot is currently disabled
switch to partitions #0, OK
mmc0 is current device
Scanning mmc device 0
Checking for: /uEnv.txt ...
Checking for: /boot/uEnv.txt ...
24 bytes read in 42 ms (0 Bytes/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt ...
debug: [uname_r=4.9.147-ti-r121] ...
loading /boot/vmlinuz-4.9.147-ti-r121 ...
16380288 bytes read in 776 ms (20.1 MiB/s)
loading /boot/dtbs/4.9.147-ti-r121/am571x-idk.dtb ...
148768 bytes read in 87 ms (1.6 MiB/s)
debug: [console=ttyO2,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait] ...
debug: [bootz 0x82000000 - 0x88000000] ...
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffd8000, end 8ffff51f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.147-ti-r121 (megacount@megacount-System-Product-Name) (gcc version 6.5.0 (Linaro GCC 6.5-2018.12) ) #1 SMP PREEMPT Mon Jul 1 17:46:20 +05 2019
[    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt:Machine model: TI AM5718 IDK
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x95800000, size 56 MiB
[    0.000000] OF: reserved mem: initialized node ipu2_cma@95800000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x99000000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x9d000000, size 32 MiB
[    0.000000] OF: reserved mem: initialized node ipu1_cma@9d000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 48 MiB at 0xbc800000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] OMAP4: Map 0xbfe00000 to fe600000 for dram barrier
[    0.000000] DRA722 ES2.0
[    0.000000] percpu: Embedded 15 pages/cpu @ef63d000 s31884 r8192 d21364 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 259904
[    0.000000] Kernel command line: console=ttyO2,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 803684K/1046528K available (12288K kernel code, 1062K rwdata, 4196K rodata, 8192K init, 439K bss, 38044K reserved, 204800K cma-reserved, 210944K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0d00000   (13280 kB)
[    0.000000]       .init : 0xc1200000 - 0xc1a00000   (8192 kB)
[    0.000000]       .data : 0xc1a00000 - 0xc1b09910   (1063 kB)
[    0.000000]        .bss : 0xc1b0b000 - 0xc1b78ff0   ( 440 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] OMAP clockevent source: timer1 at 32786 Hz
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 6.14MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
[    0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
[    0.000017] Switching to timer-based delay loop, resolution 162ns
[    0.000535] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[    0.000544] OMAP clocksource: 32k_counter at 32768 Hz
[    0.001291] Console: colour dummy device 80x30
[    0.001308] WARNING: Your 'console=ttyO2' has been replaced by 'ttyS2'
[    0.001316] This ensures that you still see kernel messages. Please
[    0.001323] update your kernel commandline.
[    0.001340] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=24590)
[    0.001354] pid_max: default: 32768 minimum: 301
[    0.001511] Security Framework initialized
[    0.001524] Yama: becoming mindful.
[    0.001556] AppArmor: AppArmor initialized
[    0.001606] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001618] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002433] CPU: Testing write buffer coherency: ok
[    0.002475] CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
[    0.002485] ftrace: allocating 37629 entries in 111 pages
[    0.067897] /cpus/cpu@0 missing clock-frequency property
[    0.067914] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067939] Setting up static identity map for 0x80100000 - 0x80100060
[    0.101844] EFI services will not be available.
[    0.115889] Brought up 1 CPUs
[    0.115901] SMP: Total of 1 processors activated (12.29 BogoMIPS).
[    0.115909] CPU: All CPU(s) started in HYP mode.
[    0.115916] CPU: Virtualization extensions available.
[    0.117061] devtmpfs: initialized
[    0.156221] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.156582] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.156601] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.160018] xor: measuring software checksum speed
[    0.196286]    arm4regs  :  2004.000 MB/sec
[    0.236344]    8regs     :  1616.000 MB/sec
[    0.276428]    32regs    :  1506.000 MB/sec
[    0.316523]    neon      :  2765.000 MB/sec
[    0.316532] xor: using function: neon (2765.000 MB/sec)
[    0.316545] pinctrl core: initialized pinctrl subsystem
[    0.317566] NET: Registered protocol family 16
[    0.319492] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.320681] omap_hwmod: l3_main_2 using broken dt data from ocp
[    0.553268] cpuidle: using governor ladder
[    0.565305] cpuidle: using governor menu
[    0.576791] OMAP GPIO hardware version 0.1
[    0.592977] irq: no irq domain found for /ocp/l4@4a000000/scm@2000/pinmux@1400 !
[    0.619287] No ATAGs?
[    0.619309] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.619319] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.619765] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.619777] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.620377] OMAP DMA hardware revision 0.0
[    0.730204] raid6: neonx2   gen()  1345 MB/s
[    0.798386] raid6: neonx2   xor()  1231 MB/s
[    0.798396] raid6: using algorithm neonx2 gen() 1345 MB/s
[    0.798405] raid6: .... xor() 1231 MB/s, rmw enabled
[    0.798413] raid6: using intx1 recovery algorithm
[    0.812213] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[    0.813233] edma 43300000.edma: memcpy is disabled
[    0.819685] edma 43300000.edma: TI EDMA DMA engine driver
[    0.823073] omap-iommu 40d01000.mmu: 40d01000.mmu registered
[    0.823214] omap-iommu 40d02000.mmu: 40d02000.mmu registered
[    0.823344] omap-iommu 58882000.mmu: 58882000.mmu registered
[    0.823465] omap-iommu 55082000.mmu: 55082000.mmu registered
[    0.825486] SCSI subsystem initialized
[    0.825796] usbcore: registered new interface driver usbfs
[    0.825859] usbcore: registered new interface driver hub
[    0.825959] usbcore: registered new device driver usb
[    0.827448] palmas 0-0058: Irq flag is 0x00000004
[    0.852693] palmas 0-0058: Muxing GPIO 2f, PWM 0, LED 0
[    0.856105] SMPS3: supplied by VMAIN
[    0.859567] SMPS6: supplied by VMAIN
[    0.861400] SMPS7: supplied by VMAIN
[    0.863381] SMPS8: supplied by VMAIN
[    0.864763] SMPS9: supplied by VMAIN
[    0.865770] V3_3D: supplied by smps9
[    0.865992] vtt_fixed: supplied by V3_3D
[    0.866092] LDO1: supplied by VMAIN
[    0.867716] LDO2: supplied by VMAIN
[    0.867776] random: fast init done
[    0.871578] LDO3: supplied by VMAIN
[    0.875612] LDO4: supplied by VMAIN
[    0.882054] LDO9: supplied by VMAIN
[    0.884059] LDOLN: supplied by VMAIN
[    0.887754] LDOUSB: supplied by VMAIN
[    0.895414] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[    0.895650] media: Linux media interface: v0.10
[    0.895701] Linux video capture interface: v2.00
[    0.895771] pps_core: LinuxPPS API ver. 1 registered
[    0.895779] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.895801] PTP clock support registered
[    0.896401] omap-mailbox 4883c000.mailbox: omap mailbox rev 0x400
[    0.896733] omap-mailbox 4883e000.mailbox: omap mailbox rev 0x400
[    0.897041] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
[    0.897241] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
[    0.899288] Advanced Linux Sound Architecture Driver Initialized.
[    0.899830] NetLabel: Initializing
[    0.899839] NetLabel:  domain hash size = 128
[    0.899846] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.899912] NetLabel:  unlabeled traffic allowed by default
[    0.903258] clocksource: Switched to clocksource arch_sys_counter
[    0.982592] VFS: Disk quotas dquot_6.6.0
[    0.982665] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.982994] AppArmor: AppArmor Filesystem Enabled
[    0.995911] NET: Registered protocol family 2
[    0.996568] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.996634] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.996760] TCP: Hash tables configured (established 8192 bind 8192)
[    0.996816] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.996849] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.997033] NET: Registered protocol family 1
[    1.005582] RPC: Registered named UNIX socket transport module.
[    1.005594] RPC: Registered udp transport module.
[    1.005602] RPC: Registered tcp transport module.
[    1.005609] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.423635] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[    1.426691] audit: initializing netlink subsys (disabled)
[    1.426737] audit: type=2000 audit(1.391:1): initialized
[    1.431954] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    1.440533] zbud: loaded
[    1.447656] NFS: Registering the id_resolver key type
[    1.447681] Key type id_resolver registered
[    1.447690] Key type id_legacy registered
[    1.447709] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.447931] fuse init (API version 7.26)
[    1.453537] Key type asymmetric registered
[    1.453550] Asymmetric key parser 'x509' registered
[    1.453616] bounce: pool size: 64 pages
[    1.453670] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    1.457856] io scheduler noop registered
[    1.457867] io scheduler deadline registered
[    1.458229] io scheduler cfq registered (default)
[    1.464772] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
[    1.464850] pinctrl-single 4a002e8c.pinmux: please update dts to use #pinctrl-cells = <1>
[    1.464955] pinctrl-single 4a002e8c.pinmux: initialized with no interrupts
[    1.464968] pinctrl-single 4a002e8c.pinmux: 1 pins at pa fc002e8c size 4
[    1.468443] dra7-pcie 51000000.pcie: Linked as a consumer to phy-4a094000.pciephy.3
[    1.468778] OF: PCI: host bridge /ocp/axi@0/pcie@51000000 ranges:
[    1.468819] OF: PCI:    IO 0x20003000..0x20012fff -> 0x00000000
[    1.468843] OF: PCI:   MEM 0x20013000..0x2fffffff -> 0x20013000
[    2.470442] dra7-pcie 51000000.pcie: phy link never came up
[    2.470662] dra7-pcie 51000000.pcie: PCI host bridge to bus 0000:00
[    2.470676] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.470688] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    2.470699] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
[    2.471121] PCI: bus0: Fast back to back transfers disabled
[    2.471310] PCI: bus1: Fast back to back transfers enabled
[    2.471422] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff]
[    2.471439] pci 0000:00:00.0: BAR 1: assigned [mem 0x20020000-0x2002ffff]
[    2.471453] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.478530] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    2.481077] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 301, base_baud = 3000000) is a 8250
[    3.594871] console [ttyS2] enabled
[    3.600594] omap_rng 48090000.rng: OMAP Random Number Generator ver. 20
[    3.607497] [drm] Initialized
[    3.613057] OMAP DSS rev 6.1
[    3.616457] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
[    3.625035] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
[    3.636454] etnaviv gpu-subsystem: bound 59000000.bb2d (ops gpu_ops)
[    3.642876] etnaviv-gpu 59000000.bb2d: model: GC320, revision: 5301
[    3.708165] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled
[    3.714982] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    3.723598] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst
[    3.738124] scsi host0: ahci
[    3.741379] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 344
[    3.752372] m25p80 spi0.0: s25fl256s1 (32768 Kbytes)
[    3.769182] libphy: Fixed MDIO Bus: probed
[    3.774389] CAN device driver interface
[    3.779568] c_can_platform 4ae3c000.can: c_can_platform device registered (regs=fce3c000, irq=352)
[    3.827302] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
[    3.833450] davinci_mdio 48485000.mdio: detected phy mask fffffffc
[    3.849310] libphy: 48485000.mdio: probed
[    3.853531] davinci_mdio 48485000.mdio: phy[0]: device 48485000.mdio:00, driver Micrel KSZ9031 Gigabit PHY
[    3.863356] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver Micrel KSZ9031 Gigabit PHY
[    3.873962] cpsw 48484000.ethernet: Detected MACID = 44:ea:d8:14:59:92
[    3.880670] cpsw 48484000.ethernet: cpts: overflow check period 1250 (jiffies)
[    3.889051] cpsw 48484000.ethernet: cpsw: Detected MACID = 44:ea:d8:14:59:93
[    3.901180] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.907835] ehci-pci: EHCI PCI platform driver
[    3.912381] ehci-platform: EHCI generic platform driver
[    3.917986] ehci-omap: OMAP-EHCI Host Controller driver
[    3.924108] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    3.929665] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[    3.937907] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
[    3.946823] xhci-hcd xhci-hcd.1.auto: irq 466, io mem 0x48890000
[    3.953083] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.959928] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.967231] usb usb1: Product: xHCI Host Controller
[    3.972152] usb usb1: Manufacturer: Linux 4.9.147-ti-r121 xhci-hcd
[    3.978400] usb usb1: SerialNumber: xhci-hcd.1.auto
[    3.984030] hub 1-0:1.0: USB hub found
[    3.987887] hub 1-0:1.0: 1 port detected
[    3.992340] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    3.997926] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[    4.005741] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.014066] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    4.020926] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.028219] usb usb2: Product: xHCI Host Controller
[    4.033141] usb usb2: Manufacturer: Linux 4.9.147-ti-r121 xhci-hcd
[    4.039388] usb usb2: SerialNumber: xhci-hcd.1.auto
[    4.044965] hub 2-0:1.0: USB hub found
[    4.048813] hub 2-0:1.0: 1 port detected
[    4.053394] usbcore: registered new interface driver usb-storage
[    4.060819] palmas_pwrbutton 48070000.i2c:tps659038@58:tps659038_pwr_button: h/w controlled shutdown duration=12 seconds
[    4.071790] ata1: SATA link down (SStatus 0 SControl 300)
[    4.078590] input: palmas_pwron as /devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-0058/48070000.i2c:tps659038@58:tps659038_pwr_button/input/input0
[    4.094831] omap_rtc 48838000.rtc: rtc core: registered 48838000.rtc as rtc1
[    4.105282] palmas-rtc 48070000.i2c:tps659038@58:tps659038_rtc: rtc core: registered 48070000.i2c:tps659 as rtc0
[    4.117378] i2c /dev entries driver
[    4.124669] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    4.136038] omap_hsmmc 4809c000.mmc: Got CD GPIO
[    4.183651] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr25 mode
[    4.195262] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr12 mode
[    4.248300] ledtrig-cpu: registered to indicate activity on CPUs
[    4.259497] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
[    4.275278] omap-aes 4b500000.aes: will run requests pump with realtime priority
[    4.295492] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
[    4.307299] omap-aes 4b700000.aes: will run requests pump with realtime priority
[    4.319583] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
[    4.331360] omap-des 480a5000.des: will run requests pump with realtime priority
[    4.351874] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
[    4.379631] hidraw: raw HID events driver (C) Jiri Kosina
[    4.391612] usbcore: registered new interface driver usbhid
[    4.403273] usbhid: USB HID core driver
[    4.411736] omap_gpio 4805b000.gpio: Could not set line 7 debounce to 20000 microseconds (-22)
[    4.437694] wireguard: WireGuard 0.0.20190227 loaded. See www.wireguard.com for information.
[    4.455261] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    4.475814] NET: Registered protocol family 10
[    4.491937] mip6: Mobile IPv6
[    4.494920] NET: Registered protocol family 17
[    4.507266] can: controller area network core (rev 20120528 abi 9)
[    4.519301] NET: Registered protocol family 29
[    4.527318] Key type dns_resolver registered
[    4.535259] mpls_gso: MPLS GSO support
[    4.539105] omap_voltage_late_init: Voltage driver support not added
[    4.555356] Power Management for TI OMAP4+ devices.
[    4.567450] ThumbEE CPU extension supported.
[    4.575266] Registering SWP/SWPB emulation handler
[    4.587739] registered taskstats version 1
[    4.595301] zswap: loaded using pool lzo/zbud
[    4.615807] Btrfs loaded, crc32c=crc32c-generic
[    4.651425] Key type encrypted registered
[    4.655553] AppArmor: AppArmor sha1 policy hashing enabled
[    4.686345] dmm 4e000000.dmm: workaround for errata i878 in use
[    4.703720] dmm 4e000000.dmm: initialized all PAT entries
[    4.716509] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    4.731258] [drm] No driver support for vblank timestamp query.
[    5.023336] [drm] Enabling DMM ywrap scrolling
[    5.068263] Console: switching to colour frame buffer device 240x67
[    5.107260] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
[    5.190499] palmas-rtc 48070000.i2c:tps659038@58:tps659038_rtc: setting system clock to 2000-01-01 00:50:34 UTC (946687834)
[    5.201736] of_cfs_init
[    5.204283] of_cfs_init: OK
[    5.208088] ALSA device list:
[    5.211089]   No soundcards found.
[    5.214576] Warning: unable to open an initial console.
[    5.219953] Waiting for root device /dev/mmcblk0p2...
[    5.229478] mmc0: host does not support reading read-only switch, assuming write-enable
[    5.239715] mmc0: new high speed SDHC card at address 0001
[    5.249823] mmcblk0: mmc0:0001 ASTC 3.75 GiB
[    5.255334] mmc1: new DDR MMC card at address 0001
[    5.260219]  mmcblk0: p1 p2
[    5.268145] mmcblk1: mmc1:0001 R1J56L 13.8 GiB
[    5.277026] mmcblk1boot0: mmc1:0001 R1J56L partition 1 4.00 MiB
[    5.287312] mmcblk1boot1: mmc1:0001 R1J56L partition 2 4.00 MiB
[    5.331331] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -2
[    5.339324] Please append a correct "root=" boot option; here are the available partitions:
[    5.347747] b300         3932160 mmcblk0 [    5.351631]  driver: mmcblk
[    5.354439]   b301           71680 mmcblk0p1 484d6a82-01[    5.359609]
[    5.361107]   b302          512000 mmcblk0p2 484d6a82-02[    5.366315]
[    5.367829] b308        14417920 mmcblk1 [    5.371687]  driver: mmcblk
[    5.374493] b318            4096 mmcblk1boot1 [    5.378788]  (driver?)
[    5.381168] b310            4096 mmcblk1boot0 [    5.385470]  (driver?)
[    5.387852] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    5.396325] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.147-ti-r121 #1
[    5.403051] Hardware name: Generic DRA72X (Flattened Device Tree)
[    5.409185] [<c0113ee8>] (unwind_backtrace) from [<c010db18>] (show_stack+0x20/0x24)
[    5.416966] [<c010db18>] (show_stack) from [<c0670808>] (dump_stack+0x80/0x94)
[    5.424222] [<c0670808>] (dump_stack) from [<c0267d90>] (panic+0x100/0x294)
[    5.431217] [<c0267d90>] (panic) from [<c12014a0>] (mount_block_root+0x1ac/0x29c)
[    5.438732] [<c12014a0>] (mount_block_root) from [<c12016c8>] (mount_root+0x138/0x154)
[    5.446683] [<c12016c8>] (mount_root) from [<c120183c>] (prepare_namespace+0x158/0x19c)
[    5.454720] [<c120183c>] (prepare_namespace) from [<c1201060>] (kernel_init_freeable+0x258/0x270)
[    5.463630] [<c1201060>] (kernel_init_freeable) from [<c0c2084c>] (kernel_init+0x18/0x118)
[    5.471932] [<c0c2084c>] (kernel_init) from [<c0108fd0>] (ret_from_fork+0x14/0x24)
[    5.479539] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

  • Hello August,

    The U-Boot and kernel you use are not from the Processor SDK, so that the arago-tiny-image loading fails. Please, use <Processor SDK>/bin/create-sdcard.sh script while creating you SD card and flash all the component from the latest Processor SDK.

    Best regards,
    Kemal

  • Can i use this post https://e2e.ti.com/support/processors/f/791/t/686920 to build the initramfs am57 **?
    Thanks!

  • Yes, but you can already find a tiny filesystem in <Processor SDK>/filesystem/ directory and use these similar steps to create an initramfs.

  • How determine what it works on ram fs?
    I used arago tiny sdk + dtb files and kernel image from build oembedded

  • Hello August,

    To boot your board trough ramfs or initramfs and stay in there you have two choices.

    Method 1. Use external ramdisk image.

    Install the latest Processor SDK and create SD card by using <Processor SDK>/bin/create-sdcard.sh script.

    cd <Processor SDK>/filesystem/
    mkdir ramdisk
    sudo mke2fs -vm0 /dev/ram 16384
    sudo mount -t ext4 /dev/ram ramdisk/
    sudo tar xvf arago-tiny-image-am57xx-evm.tar.xz -C ramdisk/
    sync
    sudo umount ramdisk
    sudo dd if=/dev/ram of=ramdisk.img bs=1k count=16384
    gzip -9 ramdisk.img
    mkimage -A arm -O linux -T ramdisk -d ./ramdisk.img.gz ramdisk.gz

    Copy the ramdisk.gz to SD card's second partition under /boot/ directory.
    sudo cp ramdisk.gz /media/<username>/rootfs/boot/

    Sync and safety remove the SD card from your host computer and boot your board with it. Stop the booting in U-Boot console and enter these commands.

    setenv devtype mmc
    setenv ramrootfstype ext4
    setenv ramroot '/dev/ram0 rw'
    setenv ramdiskfile ramdisk.gz
    setenv loadramdisk 'load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${ramdiskfile}'
    setenv ramargs 'setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}'
    setenv ramboot 'echo Booting from ramdisk ...; run ramargs; bootz ${loadaddr} ${rdaddr} ${fdtaddr}'
    setenv bootcmd 'run findfdt; run loadimage loadfdt loadramdisk ramboot'
    saveenv
    boot

    When the board booted, you will see this.


    Method 2. Use internal initramfs embedded to the kernel.

    Install the latest Processor SDK and create SD card by using <Processor SDK>/bin/create-sdcard.sh script.

    cd <Processor SDK>/filesystem/
    mkdir initramfs
    tar xvf arago-tiny-image-am57xx-evm.tar.xz -C initramfs/
    cd initramfs/
    find . | cpio -H newc -o > ../initramfs.cpio
    cd ../../
    make linux_clean && make linux
    cd board-support/linux-<version>/
    ARCH=arm make menuconfig

    Setup the absolute path to initramfs.cpio in General setup  ---> ()    Initramfs source file(s)
    Exit
    Exit
    Do you wish to save your new configuration?
    < Yes >
    cp .config arch/arm/configs/tisdk_am57xx-evm_defconfig
    cd ../../
    make linux_clean && make linux

    Copy the generated zImage in <Processor SDK>/board-support/linux-<version>/arch/arm/boot/ to SD card's second partition under /boot/ directory.
    sudo cp <Processor SDK>/board-support/linux-<version>/arch/arm/boot/zImage /media/<username>/rootfs/boot/

    Sync and safety remove the SD card from your host computer and boot your board with it. Stop the booting in U-Boot console and enter these commands.

    env default -a -f
    saveenv
    reset

    Stop the booting in U-Boot console again and continue to enter these commands.

    setenv args_mmc 'run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rdinit=/sbin/init rw rootfstype=${mmcrootfstype}'
    saveenv
    boot

    When the board booted, you will see this.


    Best regards,
    Kemal

  • Hello August,

    Please, close this thread by clicking on "This resolved my issue" button if you resolved this issue or reply back with more information about what went wrong.

    Best regards,
    Kemal

  • Hi August,

    Were you able to fix this? I’ve not heard back from you in a month. I hope we were able to help. I’m going to close the thread now and mark the issue resolved. If you have any follow-up questions, please reply to this thread or start a new thread.

    Thanks,
    Kemal