Trying to boot custom kernel on Wink Hub (i.MX28)

Fabio Estevam festevam at gmail.com
Fri Jun 23 03:25:03 CEST 2023


Hi Rogan,

On Thu, Jun 22, 2023 at 10:03 PM Fabio Estevam <festevam at gmail.com> wrote:
>
> Hi Rogan,
>
> On Thu, Jun 22, 2023 at 7:43 PM Fabio Estevam <festevam at gmail.com> wrote:
>
> > You should also pass the kernel command line: console=ttyAMA0,115200n8
> >
> > As far as I recall, the 2.6.35 kernel used a different console device.
>
> Yes, 2.6.35  uses ttyAM0. Mainline uses ttyAMA0 (note the extra A).
>
> Please adjust it accordingly.

Also, I validated booting a uImage on a imx28-evk using the same procedure.

I used kernel 6.1.34.

$ grep DTB .config
CONFIG_ARM_APPENDED_DTB=y
CONFIG_ARM_ATAG_DTB_COMPAT=y
CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER=y
# CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND is not set

=> setenv bootargs 'console=ttyAMA0,115200 root=/dev/mmcblk0p3 rw rootwait'
=> print loadaddr
loadaddr=0x42000000
=> load mmc 0:2 $loadaddr uImage_with_dtb
5916489 bytes read in 1778 ms (3.2 MiB/s)
=> bootm
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:
   Created:      2023-06-23   1:17:21 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5916425 Bytes = 5.6 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.1.34-00030-ga03745a375fa-dirty
(fabio at fabio-Precision-3551) (arm-linux-gnueabihf-gcc (Ubuntu
11.3.0-1ubuntu1~22.04.1) 11.3.0, GNU ld (GNU Binutils for Ubuntu)
2.38) #31 Thu Jun 22 22:12:44 -03 2023
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Freescale i.MX28 Evaluation Kit
...

Most likely the ttyAMA0 change should allow you to boot.

Cheers


More information about the U-Boot mailing list