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.

AM3358: Booting custom board

Part Number: AM3358
Other Parts Discussed in Thread: AM3352, TPS65217

Hi,

I have a custom board and it is not booting the Linux kernel. I'm trying with a process that already works in a BBB. This custom board has 128MB of RAM and does not have the HW ID e2prom. Searching the forum, I made the following changes to u-boot:

board/ti/am335x/board.h:
static inline int board_is_bone_lt(void)
{
return 1;
//return board_ti_is("A335BNLT");
}

include/configs/ti_am335x_common.h:
/*#define CONFIG_MAX_RAM_BANK_SIZE (1024 << 20)*/ /* 1GB */
#define CONFIG_MAX_RAM_BANK_SIZE (128 << 20) /* 128MB */

include/configs/ti_amv7_common.h:
#define DEFAULT_LINUX_BOOT_ENV \
"loadaddr=0x82000000\0" \
"kernel_addr_r=0x82000000\0" \
"fdtaddr=0x84000000\0" \
"fdt_high=0x84000000\0" \
"dtboaddr=0x89000000\0" \
"fdt_addr_r=0x84000000\0" \
"rdaddr=0x84080000\0" \
"ramdisk_addr_r=0x84080000\0" \
"scriptaddr=0x80000000\0" \
"pxefile_addr_r=0x80100000\0" \
"bootm_size=0x10000000\0" \
"boot_fdt=try\0"

arc/arm/dts/am335x-bone.common.dtsi:
memory {
device_type = "memory";
reg = <0x80000000 0x08000000>; /* 128 MB */
};

.config:
CONFIG_BOOTCOMMAND="setenv autoload no; run init_console;dhcp;setenv bootargs 'console=ttyS0,115200n8 root=/dev/ram0 rw';tftpboot 0x82000000 zImage;tftpboot 0x84080000 initramfs;tftpboot 0x84000000 am335x-boneblack.dtb;bootz 0x82000000 0x84080000 0x84000000;"

At booting, it hang´s in loading ramdisk:

## Loading init Ramdisk from Legacy Image at 84080000 ...
Image Name: RootFilesystem
Created: 2022-03-08 17:48:59 UTC
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 2887297 Bytes = 2.8 MiB
Load Address: 84080000
Entry Point: 84080000
Verifying Checksum ... OK
## Flattened Device Tree blob at 84000000
Booting using the fdt blob at 0x84000000
Loading Ramdisk to 8fd3f000, end 8ffffe81 ...

What did I forget to change?

At BBB, it work´s:

## Loading init Ramdisk from Legacy Image at 84080000 ...
Image Name: RootFilesystem
Created: 2022-03-08 17:48:59 UTC
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 2887297 Bytes = 2.8 MiB
Load Address: 84080000
Entry Point: 84080000
Verifying Checksum ... OK
## Flattened Device Tree blob at 84000000
Booting using the fdt blob at 0x84000000
Loading Ramdisk to 8fd3f000, end 8ffffe81 ... OK
Loading Device Tree to 83fee000, end 83fff7f0 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.106-g023faefa70 (root@uservm-VirtualBox) (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #7 PREEMPT Wed Dec 1 07:13:43 -03 2021
[ 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] OF: fdt: Machine model: TI AM335x BeagleBone Black
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] INITRD: 0x8fd3f000+0x002c1000 is not a memory region - disabling initrd
[ 0.000000] cma: Reserved 48 MiB at 0x84800000
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32226
[ 0.000000] Kernel command line: console=ttyS0,115200n8 root=/dev/ram0 rw
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 62320K/130048K available (9216K kernel code, 295K rwdata, 3064K rodata, 3072K init, 254K bss, 18576K reserved, 49152K cma-reserved, 0K highmem)

Following the complete log:

CCCCCCCC
U-Boot SPL 2020.01-gf0280d9-dirty (Mar 07 2022 - 14:50:17 -0300)
Trying to boot from USB eth

Warning: usb_ether using MAC address from ROM
eth0: usb_ether
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Change timeout...
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
*** Unhandled DHCP Option in OFFER/ACK: 7
*** Unhandled DHCP Option in OFFER/ACK: 7
DHCP client bound to address 192.168.100.64 (10463 ms)
Using usb_ether device
TFTP from server 192.168.100.1; our IP address is 192.168.100.64
Filename 'u-boot-am335x-evm.img'.
Load address: 0x82000000
Loading: #################################################################
#################################################################
##################
2.3 MiB/s
done
Bytes transferred = 755332 (b8684 hex)


U-Boot 2020.01-gacbd275-dirty (Mar 10 2022 - 06:04:00 -0300)

CPU : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM: 128 MiB
WDT: Started with servicing (60s timeout)
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... <ethaddr> not set. Validating first E-fuse MAC
Net:
Warning: usb_ether MAC addresses don't match:
Address in ROM is de:ad:be:ef:00:01
Address in environment is cc:33:31:82:66:d6
eth0: usb_ether
Hit any key to stop autoboot: 0
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Change timeout...
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
*** Unhandled DHCP Option in OFFER/ACK: 7
*** Unhandled DHCP Option in OFFER/ACK: 7
DHCP client bound to address 192.168.100.64 (10011 ms)

Warning: usb_ether MAC addresses don't match:
Address in ROM is de:ad:be:ef:00:01
Address in environment is cc:33:31:82:66:d6
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Change timeout...
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
Using usb_ether device
TFTP from server 192.168.100.1; our IP address is 192.168.100.64

Load address: 0x82000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###########################
1 MiB/s
done
Bytes transferred = 7066112 (6bd200 hex)

Warning: usb_ether MAC addresses don't match:
Address in ROM is de:ad:be:ef:00:01
Address in environment is cc:33:31:82:66:d6
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Change timeout...
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
Using usb_ether device
TFTP from server 192.168.100.1; our IP address is 192.168.100.64

Load address: 0x84080000
Loading: #################################################################
#################################################################
#################################################################
##
495.1 KiB/s
done
Bytes transferred = 2887361 (2c0ec1 hex)

Warning: usb_ether MAC addresses don't match:
Address in ROM is de:ad:be:ef:00:01
Address in environment is cc:33:31:82:66:d6
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Change timeout...
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
Using usb_ether device
TFTP from server 192.168.100.1; our IP address is 192.168.100.64

Load address: 0x84000000
Loading: #####
10.7 KiB/s
done
Bytes transferred = 59377 (e7f1 hex)
## Loading init Ramdisk from Legacy Image at 84080000 ...
Image Name: RootFilesystem
Created: 2022-03-08 17:48:59 UTC
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 2887297 Bytes = 2.8 MiB
Load Address: 84080000
Entry Point: 84080000
Verifying Checksum ... OK
## Flattened Device Tree blob at 84000000
Booting using the fdt blob at 0x84000000
Loading Ramdisk to 8fd3f000, end 8ffffe81 ...

  • Hi Renato,

    If you don't load the ramdisk, can uboot boot the Linux kernel without rootfs?

    bootz 0x82000000 - 0x84000000

  • Hi Bin,

    I need rootfs to configure network and downloading a script to flash the emmc.

    I was looking in the common/image.c at the function boot_ramdisk_high(). I changed the "initrd_copy_to_ram" to 0 and starts the boot now.

    I´m not undestanding why it move the initramfs...

    But there´s a error that doesn´t tell me anything.

    I will following the suggestion from ticket:

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1050332/am3354-unhandled-fault-external-abort-on-non-linefetch-0x1008-at-0xd02e6000

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 5.4.106-g023faefa70 (root@uservm-VirtualBox) (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #7 PREEMPT Wed Dec 1 07:13:43 -03 2021
    [ 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] OF: fdt: Machine model: TI AM335x BeagleBone Black
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] efi: Getting EFI parameters from FDT:
    [ 0.000000] efi: UEFI not found.
    [ 0.000000] cma: Reserved 48 MiB at 0x84800000
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (neon)
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32226
    [ 0.000000] Kernel command line: console=ttyS0,115200n8 root=/dev/ram0 rw
    [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
    [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
    [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [ 0.000000] Memory: 59500K/130048K available (9216K kernel code, 295K rwdata, 3064K rodata, 3072K init, 254K bss, 21396K reserved, 49152K cma-reserved, 0K highmem)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] rcu: Preemptible hierarchical RCU implementation.
    [ 0.000000] Tasks RCU enabled.
    [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
    [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
    [ 0.000000] random: get_random_bytes called from start_kernel+0x2b4/0x470 with crng_init=0
    [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [ 0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.000035] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.000044] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.000278] timer_probe: no matching timers found
    [ 0.000443] Console: colour dummy device 80x30
    [ 0.000516] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [ 0.089160] pid_max: default: 32768 minimum: 301
    [ 0.089360] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.089371] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.090221] CPU: Testing write buffer coherency: ok
    [ 0.090291] CPU0: Spectre v2: using BPIALL workaround
    [ 0.091075] Setting up static identity map for 0x80100000 - 0x80100060
    [ 0.091208] rcu: Hierarchical SRCU implementation.
    [ 0.091283] EFI services will not be available.
    [ 0.091615] devtmpfs: initialized
    [ 0.100932] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.101293] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.101316] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
    [ 0.104670] pinctrl core: initialized pinctrl subsystem
    [ 0.105419] DMI not present or invalid.
    [ 0.105865] NET: Registered protocol family 16
    [ 0.107935] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.130992] l3-aon-clkctrl:0000:0: failed to disable
    [ 0.133043] cpuidle: using governor ladder
    [ 0.133073] cpuidle: using governor menu
    [ 0.147816] No ATAGs?
    [ 0.147827] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.162835] debugfs: Directory '49000000.edma' with parent 'dmaengine' already present!
    [ 0.162871] edma 49000000.edma: TI EDMA DMA engine driver
    [ 0.164518] iommu: Default domain type: Translated
    [ 0.166471] SCSI subsystem initialized
    [ 0.167044] mc: Linux media interface: v0.10
    [ 0.167078] videodev: Linux video capture interface: v2.00
    [ 0.167151] pps_core: LinuxPPS API ver. 1 registered
    [ 0.167158] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.167177] PTP clock support registered
    [ 0.167205] EDAC MC: Ver: 3.0.0
    [ 0.168167] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.169065] clocksource: Switched to clocksource timer1
    [ 0.176244] thermal_sys: Registered thermal governor 'fair_share'
    [ 0.176252] thermal_sys: Registered thermal governor 'bang_bang'
    [ 0.176268] thermal_sys: Registered thermal governor 'step_wise'
    [ 0.176273] thermal_sys: Registered thermal governor 'user_space'
    [ 0.176279] thermal_sys: Registered thermal governor 'power_allocator'
    [ 0.176828] NET: Registered protocol family 2
    [ 0.177560] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
    [ 0.177589] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.177606] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.177621] TCP: Hash tables configured (established 1024 bind 1024)
    [ 0.177722] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
    [ 0.177741] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
    [ 0.177881] NET: Registered protocol family 1
    [ 0.178433] RPC: Registered named UNIX socket transport module.
    [ 0.178446] RPC: Registered udp transport module.
    [ 0.178451] RPC: Registered tcp transport module.
    [ 0.178456] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.178472] PCI: CLS 0 bytes, default 64
    [ 0.345557] Trying to unpack rootfs image as initramfs...
    [ 0.548225] Freeing initrd memory: 2820K
    [ 0.548700] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 0.550208] Initialise system trusted keyrings
    [ 0.550503] workingset: timestamp_bits=14 max_order=15 bucket_order=1
    [ 0.554938] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.555720] NFS: Registering the id_resolver key type
    [ 0.555763] Key type id_resolver registered
    [ 0.555770] Key type id_legacy registered
    [ 0.555813] ntfs: driver 2.1.32 [Flags: R/O].
    [ 0.556574] Key type asymmetric registered
    [ 0.556587] Asymmetric key parser 'x509' registered
    [ 0.556636] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
    [ 0.556645] io scheduler mq-deadline registered
    [ 0.556651] io scheduler kyber registered
    [ 0.561613] OMAP GPIO hardware version 0.1
    [ 0.610973] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [ 0.656505] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [ 0.660793] printk: console [ttyS0] disabled
    [ 0.660903] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 29, base_baud = 3000000) is a 8250
    [ 1.260255] printk: console [ttyS0] enabled
    [ 1.266981] omap_rng 48310000.rng: Random Number Generator ver. 20
    [ 1.273371] random: fast init done
    [ 1.276999] random: crng init done
    [ 1.296239] brd: module loaded
    [ 1.306025] loop: module loaded
    [ 1.313263] libphy: Fixed MDIO Bus: probed
    [ 1.379136] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [ 1.386838] libphy: 4a101000.mdio: probed
    [ 1.396026] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver unknown
    [ 1.404403] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [ 1.410849] cpsw 4a100000.ethernet: ALE Table size 1024
    [ 1.416193] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [ 1.423540] cpsw 4a100000.ethernet: Detected MACID = cc:33:31:82:66:d6
    [ 1.434557] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
    [ 1.451325] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
    [ 1.476032] udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
    [ 1.485301] i2c /dev entries driver
    [ 1.491390] cpuidle: enable-method property 'ti,am3352' found operations
    [ 1.498699] sdhci: Secure Digital Host Controller Interface driver
    [ 1.504980] sdhci: Copyright(c) Pierre Ossman
    [ 1.510818] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
    [ 1.519616] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 1.578025] omap_hsmmc 47810000.mmc: RX DMA channel request failed
    [ 1.584817] sdhci-pltfm: SDHCI platform and OF driver helper
    [ 1.593118] ledtrig-cpu: registered to indicate activity on CPUs
    [ 1.604037] NET: Registered protocol family 10
    [ 1.609825] Segment Routing with IPv6
    [ 1.613585] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [ 1.620383] NET: Registered protocol family 17
    [ 1.625282] Key type dns_resolver registered
    [ 1.629792] omap_voltage_late_init: Voltage driver support not added
    [ 1.636846] Loading compiled-in X.509 certificates
    [ 1.666549] mmc1: new high speed MMC card at address 0001
    [ 1.672752] mmcblk1: mmc1:0001 eMMC 7.28 GiB
    [ 1.677528] mmcblk1boot0: mmc1:0001 eMMC partition 1 4.00 MiB
    [ 1.684076] mmcblk1boot1: mmc1:0001 eMMC partition 2 4.00 MiB
    [ 1.690799] mmcblk1rpmb: mmc1:0001 eMMC partition 3 4.00 MiB, chardev (245:0)
    [ 1.701762] mmcblk1: p1
    [ 1.710749] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [ 1.716507] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.724540] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
    [ 1.730709] 8<--- cut here ---
    [ 1.733786] Unhandled fault: external abort on non-linefetch (0x1008) at 0xc82e6000
    [ 1.741476] pgd = c54089fd
    [ 1.744190] [c82e6000] *pgd=83131811, *pte=4a326653, *ppte=4a326453
    [ 1.750494] Internal error: : 1008 [#1] PREEMPT ARM
    [ 1.755389] Modules linked in:
    [ 1.758459] CPU: 0 PID: 50 Comm: kworker/0:2 Not tainted 5.4.106-g023faefa70 #7
    [ 1.765795] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 1.771932] Workqueue: events deferred_probe_work_func
    [ 1.777099] PC is at sysc_probe+0x83c/0x1194
    [ 1.781389] LR is at omap_reset_deassert+0xc4/0x210
    [ 1.786283] pc : [<c047bf10>] lr : [<c04f6b1c>] psr: 600f0113
    [ 1.792571] sp : c263fe10 ip : 00000001 fp : 00000000
    [ 1.797813] r10: c40dfdc0 r9 : 00000028 r8 : c0a2d230
    [ 1.803056] r7 : c315e010 r6 : c0a2d6f0 r5 : 00000000 r4 : c4051e40
    [ 1.809607] r3 : c82e6000 r2 : 00000000 r1 : 00026000 r0 : 00000000
    [ 1.816160] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
    [ 1.823322] Control: 10c5387d Table: 825f0019 DAC: 00000051
    [ 1.829089] Process kworker/0:2 (pid: 50, stack limit = 0xf7107f12)
    [ 1.835379] Stack: (0xc263fe10 to 0xc2640000)
    [ 1.839754] fe00: 00000001 00000000 c0c1a4cc c110ae20
    [ 1.847968] fe20: c0be87b0 c315e010 00000001 c0c1a3ac 00000001 00000001 00000030 c1103048
    [ 1.856180] fe40: c0c2d2ec 00000000 c315e010 c1120070 c1180048 00000000 c1120070 00000006
    [ 1.864392] fe60: c2639358 c05d75ac c315e010 c1180044 00000000 c1180048 00000000 c05d5714
    [ 1.872604] fe80: c315e010 c1120070 c05d5ba8 c1130350 00000000 00000000 c1130378 c05d59f0
    [ 1.880816] fea0: c1120070 c263fef4 c315e010 00000000 c263fef4 c05d5ba8 c1130350 00000000
    [ 1.889028] fec0: 00000000 c1130378 c2639358 c05d39a4 00000000 c303d1dc c326d9b4 c1103048
    [ 1.897241] fee0: c315e010 00000001 c315e054 c05d54c0 c315e010 c315e010 00000001 c1103048
    [ 1.905453] ff00: c315e010 c315e010 c11305a8 c05d4824 c315e010 c1130344 c1130344 c05d4cbc
    [ 1.913665] ff20: c1130374 c263b000 00000000 c7d91200 00000000 c0141ef4 c263e000 c1113c20
    [ 1.921878] ff40: c263b000 c110d4ac c263b014 c263e000 c1113c20 c110d4c0 c110d4ac c01423e4
    [ 1.930090] ff60: 00000000 c2639340 c2639300 c263e000 00000000 c263b000 c0142174 c3061ed0
    [ 1.938303] ff80: c2639358 c0146964 00000000 c2639300 c0146824 00000000 00000000 00000000
    [ 1.946515] ffa0: 00000000 00000000 00000000 c01010e8 00000000 00000000 00000000 00000000
    [ 1.954727] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 1.962940] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
    [ 1.971171] [<c047bf10>] (sysc_probe) from [<c05d75ac>] (platform_drv_probe+0x48/0x98)
    [ 1.979126] [<c05d75ac>] (platform_drv_probe) from [<c05d5714>] (really_probe+0x1e0/0x348)
    [ 1.987426] [<c05d5714>] (really_probe) from [<c05d59f0>] (driver_probe_device+0x60/0x170)
    [ 1.995727] [<c05d59f0>] (driver_probe_device) from [<c05d39a4>] (bus_for_each_drv+0x84/0xd0)
    [ 2.004289] [<c05d39a4>] (bus_for_each_drv) from [<c05d54c0>] (__device_attach+0xf0/0x15c)
    [ 2.012587] [<c05d54c0>] (__device_attach) from [<c05d4824>] (bus_probe_device+0x84/0x8c)
    [ 2.020800] [<c05d4824>] (bus_probe_device) from [<c05d4cbc>] (deferred_probe_work_func+0x64/0x90)
    [ 2.029806] [<c05d4cbc>] (deferred_probe_work_func) from [<c0141ef4>] (process_one_work+0x1c4/0x444)
    [ 2.038980] [<c0141ef4>] (process_one_work) from [<c01423e4>] (worker_thread+0x270/0x5cc)
    [ 2.047195] [<c01423e4>] (worker_thread) from [<c0146964>] (kthread+0x140/0x184)
    [ 2.054623] [<c0146964>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
    [ 2.061872] Exception stack(0xc263ffb0 to 0xc263fff8)
    [ 2.066942] ffa0: 00000000 00000000 00000000 00000000
    [ 2.075155] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 2.083367] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
    [ 2.090013] Code: e3130004 1a0001a9 e5943014 e0833001 (e593c000)
    [ 2.096134] ---[ end trace 033f16ea87902f51 ]---

  • Renato,

    I understand raminitfs is needed in your project. What I asked to not load it is just a test, to check if kernel can start to boot without it, because your previous log shows kernel doesn't start right after loaded the initramfs.

    [ 1.777099] PC is at sysc_probe+0x83c/0x1194
    [ 1.781389] LR is at omap_reset_deassert+0xc4/0x210

    Interestingly this similar kernel crash happens on my old beaglebone black board which has SR2.0 SoC (The new SoC version is SR2.1 which is the one you have), but this issue doesn't happen with Processor SDK v6.3 which has kernel v4.19. Can you please test the previous SDK v6.3 on your board to see if the same issue also happens?

    https://www.ti.com/tool/download/PROCESSOR-SDK-LINUX-AM335X/06.03.00.106

  • Bin,

    I´ll making this test with SDK v6.3.

    The Linux run in RAM and it flash de eMMC. But when it boot with kernel in eMMC, the kernel hang´s:

    U-Boot SPL 2020.01SAT3-g3c9ebdb87d (Mar 11 2022 - 11:14:06 +0000)
    Trying to boot from MMC2


    U-Boot 2020.01SAT3-g3c9ebdb87d (Mar 11 2022 - 11:14:06 +0000)

    CPU : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
    DRAM: 128 MiB
    WDT: Started with servicing (60s timeout)
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Loading Environment from FAT... OK
    Net:
    Warning: ethernet@4a100000 MAC addresses don't match:
    Address in ROM is cc:33:31:82:66:d6
    Address in environment is 00:1d:5b:00:00:00
    eth0: ethernet@4a100000
    Warning: usb_ether MAC addresses don't match:
    Address in ROM is de:ad:be:ef:00:01
    Address in environment is 34:14:b5:66:37:49
    , eth1: usb_ether
    Hit any key to stop autoboot: 0
    switch to partitions #0, OK
    mmc1(part 0) is current device
    Scanning mmc 1:1...
    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1
    7066112 bytes read in 589 ms (11.4 MiB/s)
    62691 bytes read in 9 ms (6.6 MiB/s)
    ## Flattened Device Tree blob at 84000000
    Booting using the fdt blob at 0x84000000
    Loading Device Tree to 83fed000, end 83fff4e2 ... OK

    Starting kernel ...

    In BBB the kernel start´s OK.

    Any idea?

  • I found the error. The fdt_filename was undefined. As this board does not have e2prom, the environment variable "board_name" was empty and the u-boot not defined the fdt_filename.