[Letux-kernel] [PATCH 00/20] A bunch of JZ4730 fixups for letux-kernel

H. Nikolaus Schaller hns at goldelico.com
Thu Nov 19 17:54:24 CET 2020


Hi Lubomir,

> 
> Am 18.11.2020 um 22:04 schrieb Lubomir Rintel <lkundrak at v3.sk>:
> 
> Hello Nikolaus,
> 
> Here's how I built the uImage. Again -- it's probably not the smartest
> way to do so, just my first cut at creating an image the bootloader is
> happy with.
> 
>  $ make ARCH=mips CROSS_COMPILE=mips64-linux-gnu- -j8 vmlinux.bin dtbs
>  $ cat arch/mips/boot/vmlinux.bin arch/mips/boot/dts/ingenic/mipsbook_400.dtb |gzip >vmlinux.bin.gz
>  $ mkimage \
>       -A mips \
>       -O linux \
>       -C gzip \
>       -T kernel \
>       -a $(readelf -a vmlinux |awk '/^ *LOAD *0x/ {print $3}') \
>       -e $(readelf -a vmlinux |awk '/Entry point address:/ {print $NF}') \
>       -n Linux-5.9.0-rc1-letux-l400+ \
>       -d vmlinux.bin.gz \
>       uImage
> 

I have now added the DTB append mechanism and mkimage tricks to my make wrapper
and had to update makesd to generate a FAT16 boot partition.

Now I have a little success (log attached). Kernel is loading and starting...

But then it is stuck and some WDT times out and forces a reboot. And if I
release Fn+Shift the old system starts.

Maybe my CONFIG is still wrong (although I have configured for
CONFIG_MIPS_RAW_APPENDED_DTB=y) or something with appending the DTB fails.

Anyways it is a good starting point for further work! If I had known before
that it is so easy and just a matter of undusting the device and RS232 adapter,
I could have done some code tests long ago...

BR,
Nikolaus



NAND SPL

Starting U-Boot ...


U-Boot 1.1.6 (Jun 24 2008 - 18:57:34)

Board: Ingenic PMP Ver 1.x (CPU Speed 335 MHz)
DRAM:  64 MB
Flash:  0 kB
NAND:1024 MiB
*** Warning - bad CRC or NAND, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   JZ ETHERNET
### main_loop: bootcmd="mmcinit;fatload mmc 0 0x80600000 uimage;bootm"
Hit any key to stop autoboot:  0 
MMC card found
MMC card is ready
I'm sorry wo only surport fat16 and fat32
I'm sorry wo only surport fat16 and fat32
reading uimage
filesize: 5218787, got: 5218787

5218787 bytes read
## Booting image at 80600000 ...
   Image Name:   Linux-5.10.0-rc4-letux-l400+
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    5218723 Bytes =  5 MB
   Load Address: 80100000
   Entry Point:  808c3b0c
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...



NAND SPL

Starting U-Boot ...


U-Boot 1.1.6 (Jun 24 2008 - 18:57:34)

Board: Ingenic PMP Ver 1.x (CPU Speed 335 MHz)
DRAM:  64 MB
Flash:  0 kB
NAND:1024 MiB
*** Warning - bad CRC or NAND, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   JZ ETHERNET
### main_loop: bootcmd="nboot 0x80600000 0 0x100000;bootm"
Hit any key to stop autoboot:  0 

Loading from NAND 1GiB 3,3V 8-bit, offset 0x100000
   Image Name:   Linux Kernel Image
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    1031682 Bytes = 1007.5 kB
   Load Address: 80100000
   Entry Point:  8031a040
## Booting image at 80600000 ...
   Image Name:   Linux Kernel Image
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    1031682 Bytes = 1007.5 kB
   Load Address: 80100000
   Entry Point:  8031a040
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

CPU revision is: 02d0024f
ICACHE waybit = 12, DCACHE waybit = 12 
Primary instruction cache 16kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 16kB 4-way, linesize 32 bytes.
Linux version 2.4.20-celf3 (root at 128-server) (gcc version 3.3.1) #1 Fri Sep 5 21:48:01 HKT 2008



More information about the Letux-kernel mailing list