64bit kernel boot sequence RPI3

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

64bit kernel boot sequence RPI3

Postby necx » Thu Apr 20, 2017 12:14 pm

Hello,

I try to build a 64bits linux kernel from https://github.com/raspberrypi/linux.git

According to https://devsidestory.com/build-a-64-bit-kernel-for-your-raspberry-pi-3/ I have to do the following step :

$this->bbcode_second_pass_quote('', '
')> make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- bcmrpi3_defconfig
> make -j 8 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-

and then :
$this->bbcode_second_pass_quote('', '
')> cp arch/arm64/boot/Image /mnt/boot/kernel8.img
> cp arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b.dtb /mnt/boot/
> echo “kernel=kernel8.img” >> /mnt/boot/config.txt


But if I compare with what I have in the archive http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-3-latest.tar.gz
(I followed the instruction from https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3), there is some difference I don't understand :

1/
- From https://devsidestory.com/build-a-64-bit-kernel-for-your-raspberry-pi-3/ :
Image (and thus kernel8.img because it is a copy in my case) is an 'MS-DOS executable, MZ for MS-DOS' :
$this->bbcode_second_pass_code('', '
$ file Image
Image: MS-DOS executable, MZ for MS-DOS
')
- From ArchLinuxARM-rpi-3-latest.tar.gz, Image and kernel8.img are differents:
$this->bbcode_second_pass_code('', '$ file kernel8.img Image
kernel8.img: PCX ver. 2.5 image data bounding box [8223, 54531] - [0, 8], 20-bit uncompressed
Image: MS-DOS executable, MZ for MS-DOS

$ md5sum kernel8.img Image
95811b0dd2c5c11c8386759407018bdd kernel8.img
dd8b20373b1d1beba664f37e0442cfcc Image')

My first question is how is generated kernel8.img?

2/ - From https://devsidestory.com/build-a-64-bit-kernel-for-your-raspberry-pi-3/, the DTB file is directly located in /boot but in ArchLinuxARM-rpi-3-latest.tar.gz it is located in /boot/dtbs subdirectory.
How the good DTB file is found?

Thank you very much.
necx
 
Posts: 1
Joined: Thu Apr 20, 2017 11:27 am

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 7 guests