BPI-R2 LEDE source code for hardware NAT

Image

New test images(kernel and root.squashfs) are available: http://pan.baidu.com/s/1nuXrUTb

How to program both uImage and root file system

  1. Copy both uImagelede and root.squashfs to tftp server

  2. Run below command to program uImagelede

tftp 84000000 uImagelede
mmc dev 0
mmc write  84000000 1000 6000
  1. Run below command to program root.squashfs to EMMC:
tftp 84000000 root.squashfs
mmc dev 0
mmc write 84000000 20A00 6000
  1. Run command: boot

  2. Configure an available IP address and then run below commands when entering OS

opkg update
opkg  install luci-theme-bootstrap
opkg  install luci-mod-admin-full
  1. Connect R2 board via web
2 Likes

With this image it Will possible to use R2 as a normal router?, i got problems with nat on Ubuntu.

Yes, it’s possible to make R2 to be a router.

On Ubuntu, the HNAT will NOT be supported, the HNAT is supported based on DSA structure, but there is no DSA within kernel 4.4(ubuntu is using), so it’s a huge task to port HNAT from lede(4.9 kernel) to Ubuntu(4.4 kerenl).

Can 4.9 from lede be used for ubuntu? Where are problems? If the problem with sd-card in 4.14 can be solved it can also be used.

Replace the current uImage with v4.14 kernel so that you can run HNAT on Ubuntu. I’ve done it before…

@Ryder.Lee Is sd-card-problem solved?

How a can configure my IP Address? I tried it with ifconfig br-lan add … and route add default gw … I can ping my PC successfully but I got no internet

Hi RW2003

The DNS should be configured and the /etc/config/firewall will be changed, please refer to http://forum.banana-pi.org/uploads/default/original/2X/8/84d6c0336af978c299fb73556fd67d896e719d52.png

I think this problem is not like that. I have intenet now. And did not change any things in “/etc/config/firewall”. Actually I just change the ifname for “wan” and “wan6” in the "/etc/config/network" to “wan” but not “eth1”. And it works.

Could you send pull request back to github. Lets us make support lede better.

There is no wifi available yet, right?

Wifi-ap-driver is currently in testing state for debian-kernel (4.4.70)

Install commands not work… ‘cannot Install package’

Do you mean that both luci-theme-bootstrap and luci-mod-admin-full can’t be installed, right?

Yup, some packages can be installed eg. curl but some cannot eg. htop

Cannot download the image ! : http://pan.baidu.com/s/1nuXqAVJ

1 Like

can’t download uImageLede by this link. root.squashfs downloaded without problem.

Hello Tohin, I succeeded selecting both files and clicking on the Download button on the top of the page. You should retrieve a zip file including both files. I had the same problem trying to donwload the files one by one …

There is a new problem. I cant change my macaddr in either Luci or "/etc/config/network". Ones I change it, it cant get any IP with dhcp. Just like dead. Even I use static IP, i still can`t ping my gateway.

Another question: The mac of “wan@eth1” changed in each boot. My network have IP-MAC bind. I need a stationary MAC so that i can use the internet.

Please fix it.

Add: It can get Ipv6 address. And it can also send DHCP Discover. The MAC is which i write in “/etc/config/network”. But it don’t get DHCP Offer packet or just drop it.

ps:I don’t know how to write pull request. Sorry for the inconvenience.

Hello. Tell me please how to set ip-address and netmask in uboot-shell?