From c8afaf9fce1d1b848c13a92fed81a3331368af27 Mon Sep 17 00:00:00 2001 From: Alex Kaplan Date: Thu, 22 Feb 2024 09:59:29 +0100 Subject: [PATCH] Upload rootfs to 0x50000000 --- book/src/buildroot.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/book/src/buildroot.md b/book/src/buildroot.md index 0e259bc..5e1e650 100644 --- a/book/src/buildroot.md +++ b/book/src/buildroot.md @@ -106,12 +106,24 @@ make ``` Buildroot put everything into the `output/images` sub-directory. -To boot type: - +The following commands are booting into U-Boot SPL and then upload the Linux +kernel, the device tree and the Buildroot root file system into CHIP's DRAM: ```shell cd output/images sunxi-fel -v -p uboot u-boot-sunxi-with-spl.bin \ write 0x42000000 zImage \ write 0x43000000 sun5i-r8-chip.dtb \ - write 0x43400000 rootfs.cpio.uboot + write 0x50000000 rootfs.cpio.uboot +``` + +NOTE: We are uploading the root file system to address `0x50000000` now. +If the rootfs gets bigger we might get into trouble uploading it into the +memory region between `0x4300000000` and `0x4fffffff`. +Read the [Sunxi Website](https://linux-sunxi.org/Initial_Ramdisk) and +[this post](https://groups.google.com/g/linux-sunxi/c/Itt3Bko0bVA/m/Mqt5zTj1qaIJ) +for more details. + +To boot, type the following in the `cu` terminal window: +``` +=> bootz 0x42000000 0x50000000 0x43000000 ```