dd bs=1024 if=/home/pkalemba/bpi-r2_lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/image/mtk-bpi-r2-preloader-sd.bin of=/home/pkalemba/bpi-r2_lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eab
i/linux-mediatek_32/mtk-bpi-r2-SD.img seek=0
dd: failed to open ‘/home/pkalemba/bpi-r2_lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/image/mtk-bpi-r2-preloader-sd.bin’: No such file or directory
I assume there is a problem wtih uboot-mtk-bpi-r2 package but i cannot get it built.
I have same problem. It just abort before build image of SD card. But the uImage-mt7623n-bananapi-bpi-r2 and root.squashfs has been build in ./build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32. So you can just use that two file and flush it into your R2 board follow this:
Do you update the feeds after 2018/1/1? Another preblem is libuci-lua (>= 2018-01-01). You need download the Makefile and uci.sh in lesource/package/system/uci at master · lede-project/source · GitHub and replace same file in ./package/system/uci.
@BoringCat yes , i just changed by hand package version in Makefile of uci and it works
I know method with TFTP but i seen that is option to buld SD card ready image so i tried it and it fail.
./scripts/feeds update -a
./scripts/feeds install -a
cp …/config ( the attached config from the first post ) ./.config
make menuconfig -> exit -> did the save
make
after a while the the complie proccess is finished without error
then
cd build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32
scp root.squashfs uImage-mt7623n-bananapi-bpi-r2* root@mytftpserver:/tftproot
then on the bpi-r2 the step with the uImage-mt7623n-bananapi-bpi-r2.initramfs ( see below at the quote )
Please don’t use the mtk-bpi-r2-SD.img, we are trying to bundle preloader/uboot/kernel/root file system as an image, but it’s not ready.
Sorry for this.
source code(Please note that the branch is bpi-r2-on-lede-v1)
Configurion of LEDE
TARGET=MediaTek Ralink ARM
Boot Loaders=u-boot-bpi_r2 (This option is mandatory)
…
How to build
make -j1 V=s
Images
when above steps is done, we will below two images under /build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/:
mtk-bpi-r2-EMMC.img
mtk-bpi-r2-SD.img
How to use SD image
A SD card is requried and then install mtk-bpi-r2-SD.img to SD card by running below command:
dd if=mtk-bpi-r2-SD.img of=/dev/sdb
where /dev/sdb is the SD card.
And then install the SD card to R2 board, power it on, the board will boot from SD card.
How to use EMMC image
We need another system which is running on SD card to program EMMC image to EMMC, please follow below steps to do:
1. Copy EMMC image to a running system which is on SD card
2. Program EMMC image to User Data Area of EMMC: dd if=mtk-bpi-r2-EMMC.img of=/dev/mmcblk0
3. Unlock EMMC boot0 block: echo 0 > /sys/block/mmcblk0boot0/force_ro
4. Program preloader to EMMC boot0 block:
dd if=mtk-bpi-r2-EMMC.img of=/dev/mmcblk0boot0 bs=1M count=1
5. Change the Partition configurion of EMMC is 48h: reboot the system which is running SD, and enter the U-boot command line, run command
emmc pconf 48
6. Power off, remove SD card, and then power on R2 board.
The WAN and br-lan should be working fine, please follow below steps.
I think we can get internet via br-lan or wireless, and so on, this depends on you purpose…
Instruction
Please remove the configuration for lan and wan in /etc/config/network, and then add below lines in that file.
config interface 'lan'
option type 'bridge'
option ifname 'lan0 lan1 lan2 lan3'
option proto 'dhcp'
config interface 'wan'
option ifname 'wan'
option proto 'dhcp'
Hey @garywang,
I into bananpi r2 from last few hours.
I am linux developer and would like to contribute to make better OpenWRT/LEDE functional on this board.
Few points:
What are you current working on? What I can do here for banana pi r2?
And by “Program preloader to EMMC boot0 block:” do you mean to replace current bootloader?