Hi! Thank you for your response.
I managed to porting u-boot and the kernel using this guideline:
https://www.nxp.com/docs/en/user-guide/IMX_PORTING_GUIDE.pdf
I tried with the toolchain generated by
bitbake core-image-minimal -c populate_sdk
but I got an error of my device-tree-compiler being too old (although it was newer than the required version).
So I compiled u-boot and kernel from source using:
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-
export ARCH=arm
The branches I used:
- u-boot
- lf_v2022.04 (default from git clone)
- v2017.01
- kernel
- lf-6.6.y (according to porting guide)
And then uploaded to an SD card using guideline:
https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf
I didn't know where to get the rootfs so I used one I found after executing:
bitbate core-image-minimal
I think the all process went well because I was able to boot from the SD card on my custom board.
But it halts in 'Starting kernel ...'
I changed the DDR calibration parameters in <some_path>/uboot-imx/board/freescale/mx6ullevk/imximage.cfg and I was able to read those (successfully updated) through tne md u-boot command.
The boot log is the following:
U-Boot 2022.04-dirty (Sep 17 2024 - 13:09:39 -0300)
CPU: i.MX6ULL rev1.1 792 MHz (running at 396 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 48C
Reset cause: POR
Model: i.MX6 ULL 14x14 EVK Board
Board: MX6ULL 14x14 EVK
DRAM: 512 MiB
Core: 65 devices, 18 uclasses, devicetree: separate
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
[*]-Video Link 0 (480 x 272)
[0] lcdif@21c8000, video
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
Net:
Error: ethernet@20b4000 address not set.
Error: ethernet@20b4000 address not set.
Error: ethernet@20b4000 address not set.
Error: ethernet@20b4000 address not set.
Could not get PHY for FEC0: addr 2
Error: ethernet@20b4000 address not set.
Error: ethernet@20b4000 address not set.
Could not get PHY for FEC0: addr 2
No ethernet found.
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
switch to partitions #0, OK
mmc1 is current device
Failed to load 'boot.scr'
9419152 bytes read in 401 ms (22.4 MiB/s)
Booting from mmc ...
45482 bytes read in 5 ms (8.7 MiB/s)
Kernel image @ 0x80800000 [ 0x000000 - 0x8fb990 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300e1a9
Modify /soc/bus@2200000/epdc@228c000 disabled
Starting kernel ...
I do see the message:
Modify /soc/bus@2200000/epdc@228c000 disabled
And there was some warnings about that when compiling the kernel (I don't know what is).
Is there anything I did wrong or what could I try?
Thank you for your time.