en:rpi3b:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:rpi3b:start [2020/02/29 17:42] – [uboot] frank | en:rpi3b:start [2023/06/08 17:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Raspberry Pi3b ====== | ||
+ | ===== uboot ===== | ||
+ | |||
+ | replace kernel.img (and rename kernel7.img so that there is no kernel*.img) on boot-partition with upstream-uboot built with this: | ||
+ | |||
+ | < | ||
+ | export ARCH=arm | ||
+ | export CROSS_COMPILE=arm-linux-gnueabihf- | ||
+ | make rpi_3_32b_defconfig | ||
+ | make -j8 | ||
+ | </ | ||
+ | |||
+ | if hdmi-output is scary, you can try changing hdmi_mode (https:// | ||
+ | |||
+ | in my case i used | ||
+ | |||
+ | hdmi_group=1 | ||
+ | hdmi_mode=4 | ||
+ | |||
+ | for a 1024x600 display | ||
+ | ===== Kernel ===== | ||
+ | |||
+ | original kernel can be loaded like this: | ||
+ | |||
+ | < | ||
+ | U-Boot> setenv fdtfile backup/ | ||
+ | U-Boot> fatload mmc 0:1 ${fdt_addr} ${fdtfile} | ||
+ | 26480 bytes read in 5 ms (5.1 MiB/ | ||
+ | U-Boot> fatload mmc 0:1 ${kernel_addr_r} backup/ | ||
+ | 5757200 bytes read in 250 ms (22 MiB/ | ||
+ | U-Boot> setenv bootargs earlyprintk console=tty1 root=/ | ||
+ | U-Boot> bootz ${kernel_addr_r} - ${fdt_addr} | ||
+ | </ | ||
+ | |||
+ | have not got serial console working after uboot... | ||
+ | |||
+ | have compiled new kernel like this: | ||
+ | |||
+ | < | ||
+ | export ARCH=arm | ||
+ | export CROSS_COMPILE=arm-linux-gnueabi- | ||
+ | export LOCALVERSION=-rpi3 | ||
+ | CPUCORES=$(grep -c processor / | ||
+ | make bcm2835_defconfig | ||
+ | make -j$CPUCORES zImage modules dtbs 2> >(tee -a build.log >&2) | ||
+ | |||
+ | BOOTFS=/ | ||
+ | ROOTFS=/ | ||
+ | KERNELNAME=" | ||
+ | export INSTALL_MOD_PATH=$ROOTFS | ||
+ | sudo make modules_install | ||
+ | sudo cp $BOOTFS/ | ||
+ | sudo cp arch/ | ||
+ | sudo cp arch/ | ||
+ | </ |
en/rpi3b/start.txt · Last modified: 2023/06/08 17:06 by 127.0.0.1