yelvlab
(Hao Wang)
April 9, 2019, 12:01pm
1
I burned R2’s Openwrt 18.06 image, but after I booted it, I found that I couldn’t install the software via opkg. The configuration I changed would be overwritten after the reboot. How can I handle this?
Installing curl (7.60.0-3) to root...
Collected errors:
* verify_pkg_installable: Only have 0kb available on filesystem /overlay, pkg curl needs 44
* opkg_install_cmd: Cannot install package curl.
frank-w
(Frank W.)
April 9, 2019, 2:12pm
2
you need a kind of overlayfs (or squashfs)…
maybe this helps: Bpir2wrt Openwrt-Fork for BPI-R2
yelvlab
(Hao Wang)
April 10, 2019, 1:05am
3
Hi,frank
Thank you very much, let me try to do something
yelvlab
(Hao Wang)
April 10, 2019, 3:25am
4
+ OUTPUT_FILE=/home/hulk/disk/BPI-R2-openwrt/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/mtk-bpi-r2-SD.img
+ PRELOADER_FILE=/home/hulk/disk/BPI-R2-openwrt/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/image/mtk-bpi-r2-preloader-sd.bin
+ UBOOT_FILE=/home/hulk/disk/BPI-R2-openwrt/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/image/mtk-bpi-r2-uboot.bin
+ KERNEL_FILE=/home/hulk/disk/BPI-R2-openwrt/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/tmp/openwrt-mediatek-mt7623-7623n-bananapi-bpi-r2-initramfs-kernel.bin
+ ROOTFS_FILE=/home/hulk/disk/BPI-R2-openwrt/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/root.squashfs
+ BS=1024
+ PRELOADER_OFFSET=0
+ UBOOT_OFFSET=320
+ KERNEL_OFFSET=2048
+ ROOTFS_OFFSET=67584
+ dd bs=1024 if=/home/hulk/disk/BPI-R2-openwrt/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/image/mtk-bpi-r2-preloader-sd.bin of=/home/hulk/disk/BPI-R2-openwrt/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/mtk-bpi-r2-SD.img seek=0
dd: failed to open '/home/hulk/disk/BPI-R2-openwrt/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/image/mtk-bpi-r2-preloader-sd.bin': No such file or directory
Makefile:70: recipe for target 'install-images' failed
make[5]: *** [install-images] Error 1
make[5]: Leaving directory '/home/hulk/disk/BPI-R2-openwrt/openwrt/target/linux/mediatek/image'
Makefile:19: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/home/hulk/disk/BPI-R2-openwrt/openwrt/target/linux/mediatek'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/home/hulk/disk/BPI-R2-openwrt/openwrt/target/linux'
time: target/linux/install#32.43#5.90#44.75
target/Makefile:23: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory '/home/hulk/disk/BPI-R2-openwrt/openwrt'
target/Makefile:19: recipe for target '/home/hulk/disk/BPI-R2-openwrt/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_install' failed
make[1]: *** [/home/hulk/disk/BPI-R2-openwrt/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/hulk/disk/BPI-R2-openwrt/openwrt'
/home/hulk/disk/BPI-R2-openwrt/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
sone errors,I don’t know, how can I get rid of these mistakes?
frank-w
(Frank W.)
April 10, 2019, 8:43am
5
+ dd bs=1024 if=/home/hulk/disk/BPI-R2-openwrt/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/image/mtk-bpi-r2-preloader-sd.bin of=/home/hulk/disk/BPI-R2-openwrt/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/mtk-bpi-r2-SD.img seek=0
dd: failed to open '/home/hulk/disk/BPI-R2-openwrt/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/image/mtk-bpi-r2-preloader-sd.bin': No such file or directory
you miss the preloader file (maybe not present in the github because of .gitignore), but you can get it on official repo
maybe don’t use it…
as gary said: do not use mtk-bpi-r2-preloader-sd.bin…
you can try to move back with
git checkout commit-id
commit-overview
e.g. using 51b0bac as commit-id
the right one seems to be this: https://github.com/BPI-SINOVOIP/BPI-R2-LEDE-Uboot/tree/master/bpi_r2_preloader (for SD) see this commit:
https://github.com/garywangcn/bpi-r2_lede/commit/b1d4a37d92d992e10a29611a244d817428e3bc7d