brucerry
(bruce)
1
I am going to build the BPI-R4 Openwrt NAND image manually as I consider building the R8169 driver for RTL8125 module.
Does anyone know:
-
Is BPI-SINOVOIP/BPI-R4-OPENWRT-V21.02 the source code of the official images in Banana Pi BPI-R4 | BananaPi Docs?
-
Continue, if so, git clone it and run “make” directly to generate the NAND, EMMC & SD images like the ones provided on above official site?
-
Continue, if not, how can I generate the NAND, EMMC & SD images like the official ones?
-
Two other BPI-R4 BSP repos are found. Do they build uboot, kernel and pack them into Openwrt eMMC image only?
BPI-SINOVOIP/BPI-R4-bsp-5.4
BPI-SINOVOIP/BPI-R4-bsp-6.1
Thank you.
oli
(oli)
3
is there a reason why you go with sinovoip’s openwrt instead of the official one?
brucerry
(bruce)
4
Isn’t BPI-SINOVOIP/BPI-R4-OPENWRT-V21.02 the official code base?
I just think it can produce the Openwrt images listed on BPI-R4 site above.
brucerry
(bruce)
5
Good. I can build it and flash the NAND at least.
root@be633db039e4:~/BPI-R4-OPENWRT-V21.02/bin/targets/mediatek/mt7988# ll -h
total 434M
drwxr-xr-x 3 root root 4.0K Dec 11 10:47 ./
drwxr-xr-x 3 root root 4.0K Dec 11 09:08 ../
-rw-r--r-- 1 root root 9.9K Dec 11 09:31 config.buildinfo
-rw-r--r-- 1 root root 390 Dec 11 09:31 feeds.buildinfo
-rw-r--r-- 1 root root 83M Dec 11 10:47 mtk-bpi-r4-EMMC.img
-rw-r--r-- 1 root root 54M Dec 11 10:47 mtk-bpi-r4-NAND.img
-rw-r--r-- 1 root root 83M Dec 11 10:47 mtk-bpi-r4-SD.img
-rw-r--r-- 1 root root 39M Dec 11 10:46 openwrt-mediatek-mt7988-BPI-R4-EMMC-initramfs-kernel.bin
-rw-r--r-- 1 root root 44M Dec 11 10:46 openwrt-mediatek-mt7988-BPI-R4-EMMC-squashfs-sysupgrade.bin
-rw-r--r-- 1 root root 39M Dec 11 10:47 openwrt-mediatek-mt7988-BPI-R4-NAND-initramfs-kernel.bin
-rw-r--r-- 1 root root 46M Dec 11 10:47 openwrt-mediatek-mt7988-BPI-R4-NAND-squashfs-factory.bin
-rw-r--r-- 1 root root 44M Dec 11 10:47 openwrt-mediatek-mt7988-BPI-R4-NAND-squashfs-sysupgrade.bin
-rw-r--r-- 1 root root 39M Dec 11 10:44 openwrt-mediatek-mt7988-BPI-R4-SD-initramfs-kernel.bin
-rw-r--r-- 1 root root 44M Dec 11 10:44 openwrt-mediatek-mt7988-BPI-R4-SD-squashfs-sysupgrade.bin
-rw-r--r-- 1 root root 12K Dec 11 10:47 openwrt-mediatek-mt7988.manifest
drwxr-xr-x 2 root root 20K Dec 11 10:47 packages/
-rw-r--r-- 1 root root 1.5K Dec 11 10:47 sha256sums
-rw-r--r-- 1 root root 12 Dec 11 09:31 version.buildinfo
root@be633db039e4:~/BPI-R4-OPENWRT-V21.02/bin/targets/mediatek/mt7988#
Flash command
mtd erase /dev/mtd0
dd if=mtk-bpi-r4-NAND.img of=/dev/mtdblock0