[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Build Kernel 5.5 RC1 for Raspberry4



You might want to run make menuconfig after copying the config ..
perhaps do the same with the 4.19 kernel also and do a compare of
'what is' and 'what is not' there in the 5.5 perhaps things have been
moved around a bit in the kconfig stuff.

5.5 iirc actually adds new stuff for rpi4 so it does seem well worth the look

Nige

On Sun, Dec 15, 2019 at 4:06 PM basti <mailinglist@unix-solution.de> wrote:
>
> Hello,
>
> i have try as follows:
>
> - export ARCH=arm ; export CROSS_COMPILE=aarch64-linux-gnu-
> - copy config-4.19.0-6-arm64 to .config
> - run make olddefconfig
> - make menuconfig to add cpu-freq driver for bcm2711
> - make -j'nproc' bindeb-pkg
> - copy content of package to sd-card
> - use Image to boot instead of vmlinuz
>
> When i try to use the dtb from build process the following is shown on uart:
>
> ��>���p�p���|p�|�|��p�pp�ppp�p|p�|���p�p||p�p�|pp�����p�p|p�pp�p�pp|pp�pp�ppp�p�p�pp�pp�ppppp|p�p��p��|�pp�|ppp��p�|pp��pp
>
> I don't know what this mean.
>
> When i try to boot via u-boot with the original rasbian
> bcm2711-rpi-4-b.dtb the following in shown on uart:
>
> U-Boot 2020.01-rc4-g85432c69 (Dec 14 2019 - 20:08:51 +0100)
>
> DRAM: 3.9 GiB
> RPI 4 Model B (0xc03111)
> MMC: emmc2@7e340000: 0, mmcnr@7e300000: 1
> Loading Environment from FAT... *** Warning - bad CRC, using default
> environment
>
> In: serial
> Out: serial
> Err: serial
> Net: Net Initialization Skipped
> No ethernet found.
> Hit any key to stop autoboot: 0
> U-Boot> fatload mmc 0:1 ${fdt_addr_r} bcm2711-rpi-4-b.dtb
> 40559 bytes read in 30 ms (1.3 MiB/s)
> U-Boot> fatload mmc 0:1 ${kernel_addr_r} Image.5.5
> 20996608 bytes read in 1374 ms (14.6 MiB/s)
> U-Boot> setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2
> rootfstype=ext4 rootwait rw
> U-Boot> booti ${kernel_addr_r} - ${fdt_addr_r}
> ## Flattened Device Tree blob at 02600000
> Booting using the fdt blob at 0x2600000
> Using Device Tree in place at 0000000002600000, end 000000000260ce6e
>
> Starting kernel ...
>
> it hangs here.
>
> I try to boot directly via kernel=Image in config.txt bit nothing is shown.
> I have compare vmlinuz-4.19.0-2-arm64 (from
> https://wiki.debian.org/RaspberryPiImages) and my build Image with
> 'file' both are MS-DOS executable.
>
> My config.txt looks like:
>
> arm_64bit=1
> enable_uart=1
> #kernel=u-boot.bin
> kernel=Image5.5
>
> Has someone try to build upstream kernel 5.5-rc1 for raspi4?
>
> best regards
>


-- 
“Science is a differential equation. Religion is a boundary condition.”

                           Alan Turing


Reply to: