diff --git a/README.md b/README.md index 87b677d..2864cc9 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,11 @@ fdisk -l /dev/mmcblk0 /dev/mmcblk0p3 22925312 31115263 8189952 3,9G 83 Linux ``` +For some reason I still have to figure out, creating the partition table directly with fdisk destroys the preloader. Hence, I recommend to dd the image `first10M.img` to the beginning of the SD card and then recreating the partitions using the existing partition table. + ## Pre-Loader: -...!!! +Is included in `first10M.img`. ## u-boot: @@ -52,7 +54,7 @@ Contains: /dts/mt7623n-bananapi-bpi-r2.dtb ``` -and further images (eg different kernel versions etc...) +and further images (eg different kernel versions etc...). `/boot.img` can be created from the provided `boot.cmd` using the `mkbootimg.sh` script. I recommend to create a second `.img` file which boots into former kernel images (might be useful in the case of unsuccessful kernel update). ### how to create these files: (because they are not available anywhere, at least not for the most recent kernel. The most recent version provided by some debain derivates is 4.4 or 4.14... too old for my taste!) diff --git a/boot.cmd b/boot.cmd new file mode 100755 index 0000000..34a5304 --- /dev/null +++ b/boot.cmd @@ -0,0 +1,4 @@ +setenv bootargs console=ttyS2,115200 earlyprintk root=/dev/mmcblk1p2 rootfstype=ext4 panic=10 +fatload mmc 1 0x84000000 zImage +fatload mmc 1 0x86000000 dts/mt7623n-bananapi-bpi-r2.dtb +bootz 0x84000000 - 0x86000000 diff --git a/first10M.img b/first10M.img new file mode 100644 index 0000000..1736de8 Binary files /dev/null and b/first10M.img differ