BPI-R2 LEDE source code for hardware NAT

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 “[email protected]” 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?

  1. Set IP Address
    1. Use DHCP U-Boot> dhcp
    2. Or use static IP address U-Boot> setenv ipaddr setenv netmask

2.Configure server IP U-Boot> setenv serverip

  1. If the R2 board and server are not in same local area network, you need to configure the gatewayip.
Hit any key to stop autoboot:  0
BPI-R2> dhcp
Unknown command 'dhcp' - try 'help'
BPI-R2> setenv ipaddr
BPI-R2> setenv ipaddr
BPI-R2> setenv netmask
BPI-R2> ping
Enter mt7623_ethifsys_init()

 Waitting for RX_DMA_BUSY status Start... done

Enter setup_internal_gsw()
MT7530 Reset Completed!!
change HW-TRAP to 0x1015edf
 Release MT7623 RXC Reset
Using Eth0 device
ping failed; host is not alive

Doesn’t work. I tried to connect the patch cord in turn to WAN and LAN ports.The gateway is not available.

Hi Tohin

Sorry, the cmd dhcp isn’t included in our Uboot .

can you please confirm if the cable is connected to one of interfaces lan1-4? And what’s status of the link?, up or down?

Yes, I tried to connect the patch cord in LAN ports. according to led on port, link is up.

Can you please run command to saveenv to save environment variables and then reset? Also please share me all environment variables(run command printenv to show them).

I think I have a problem with switch. I boot to previous version LEDE and try to connect LAN:

[email protected]:/# ifconfig
eth0      Link encap:Ethernet  HWaddr 86:E8:E3:B0:C3:C7
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::84e8:e3ff:feb0:c3c7/64 Scope:Link
          RX packets:145 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:27379 (26.7 KiB)  TX bytes:1646 (1.6 KiB)
[  215.588820] mt7623-gsw [email protected]: port 4 link up
[email protected]:/# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface     *        U     0      0        0 eth0
[email protected]:/# ping
PING ( 56 data bytes
**ping: sendto: Network unreachable**

printenv.txt (2,7 КБ)

Can I use eth1 in uboot by setehv ethact Eth1? (update: It doesn’t work. after reset I see eth0 in env)

After all experiments I loosed link in Uboot… Update2: Link is up after command “tftpboot”

I really don’t know how I did it.

 BPI-R2> ping
 Using Eth0 device
 host is alive

[email protected]:/# ping PING ( 56 data bytes ping: sendto: Network unreachable


BPI-R2> ping Using Eth0 device host is alive

In the 1st test you pinged the wrong ip…router is in net 2.x,ping to 1.2

1 Like

My bad. Sorry.

solved:new trouble

After all I flashed r4757-700175b to BPI. But here new trouble. I connect WAN (I understand correctly that WAN=eth1?) to my old router with dhcp (network 192.168.2.x).

On BPI I have no IP-address:

[email protected]:/# ifconfig eth1
   Link encap:Ethernet  HWaddr 1A:F8:2C:C0:4C:12
      inet6 addr: fe80::18f8:2cff:fec0:4c12/64 Scope:Link
      RX packets:0 errors:0 dropped:1 overruns:0 frame:0
      TX packets:1268 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:0 (0.0 B)  TX bytes:403209 (393.7 KiB)

If I set IP manually, network doesn’t work.

 [email protected]:/# ifconfig eth1 netmask up
 [email protected]:/# ping
 PING ( 56 data bytes
 --- ping statistics ---
 5 packets transmitted, 0 packets received, 100% packet loss


[email protected]:/# ifconfig wan up
[email protected]:/# udhcpc -i wan