BPI-R2 new image: BPI-R2 OpenWrt(LEDE) Souce code : 2018-05-09


#85

Did someone find this script ?


#86

Guys, i really only wanted a router as an AP and a small nas for syncing some Data… I am now trying about two Months to get working this AP, don’t now what is missing to start wifi to work.

ifconfig

ap0       Link encap:Ethernet  HWaddr 02:08:22:88:E0:FB  
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::8:22ff:fe88:e0fb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:1240 (1.2 KiB)

br-lan    Link encap:Ethernet  HWaddr AE:74:13:11:5C:DA  
          inet addr:192.168.1.8  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ac74:13ff:fe11:5cda/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:416 errors:0 dropped:0 overruns:0 frame:0
          TX packets:343 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:41667 (40.6 KiB)  TX bytes:104684 (102.2 KiB)

eth0      Link encap:Ethernet  HWaddr AE:74:13:11:5C:DA  
          inet6 addr: fe80::ac74:13ff:fe11:5cda/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:432 errors:0 dropped:0 overruns:0 frame:0
          TX packets:360 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:50479 (49.2 KiB)  TX bytes:109320 (106.7 KiB)
          Interrupt:211 

eth1      Link encap:Ethernet  HWaddr C6:A9:C5:E0:EE:B1  
          inet6 addr: fe80::c4a9:c5ff:fee0:eeb1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:846 (846.0 B)
          Interrupt:211 

lan0      Link encap:Ethernet  HWaddr AE:74:13:11:5C:DA  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan1      Link encap:Ethernet  HWaddr AE:74:13:11:5C:DA  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan2      Link encap:Ethernet  HWaddr AE:74:13:11:5C:DA  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:430 errors:0 dropped:0 overruns:0 frame:0
          TX packets:343 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:42627 (41.6 KiB)  TX bytes:104684 (102.2 KiB)

lan3      Link encap:Ethernet  HWaddr AE:74:13:11:5C:DA  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:1445 (1.4 KiB)  TX bytes:1445 (1.4 KiB)

wan       Link encap:Ethernet  HWaddr C6:A9:C5:E0:EE:B1  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wireless

config wifi-iface
        option device 'ap0'
        option ssid 'bpi'
        option key 'bpi'
        option network 'ap0'
        option mode 'ap'
        option encryption 'none'
        option network 'ap0'

config wifi-device 'ap0'
option type 'nl80211'
option phy 'phy0'
option hwmode '11g'
option txpower '20'
option country 'de'
option channel '3'

wifi

ap0(nl80211): Interface type not supported
ap0(nl80211): Interface type not supported

if somebody has a solution , this would be very nice… I have wpad full installed, not wpad-mini, means i dont have a hostapd…


#88

You can try to find duplicate symbols and delete them from compat-wireless and repack them into tar.xz packages. But I’m not sure if I really solve the problem(Similar Problem )


(一无所有) #89

Excuse me, did anyone help me to answer the question that my image cannot be brushed on the emmc that comes with the development board


(Frank W.) #90

can you please give more information?

  • which board
  • which image
  • which steps have you done for emmc-flash
  • error-messages / issue?

(一无所有) #91

The development board is bpi-r2 v1.2, and the image was downloaded by colleagues on the official website. Now, it can only start with SD card.Cannot brush the image at the end of the emmc onto the development board.I just wanted to know how to do it


(Frank W.) #92

at least Second question was not answered…which image. is thos image usable for emmc? Maybe it has to be modified…


(一无所有) #93

Well, thanks for the answer, but it’s all right.We’ve already painted it. It feels ok.


#94

Has nobody tried to activate wifi with full wpad installed ?


(der Echte) #95

Hello I have problem installing openwrt on the Board (dont mather SD or EMMC) I already tried to install Ubuntu to SD, boot it to ubuntu and flash de EMMC but after rebooting the openWRT /LEDE does not boot… I have no UART cable to see the boot output… what can i do ?


#96

set manually your ethernet adapter to an ip-address from 192.168.1.0/24 Network (for ex. 192.168.1.2). Connect via LAN-Cable to your BPI. Now you should reach over ssh (192.168.1.1) the OS.


(der Echte) #97

did you read my post? how can i set up Ip if i have no screen, after booting the “uplink” of network does not working … i think the openlede did not boot … tried from flash and from sd :frowning:


#98

your should set up your PC, not the bpi… The bpi doesn’t have an Video output (HDMI) with LEDE… The bpi use after first boot the ip 192.168.1.1…


#99

Can someone please upload the Files somewhere else ? I can not download from Baidu…


(der Echte) #100

hello malavin, i understand! but the networkinterface dont have “uplink LED” after pluging cable in :frowning: i ordered now a UART Cable … waiting.


#101

Hi @garywang, nice work thank you for all the changes. Do you think you can merge your uboot that you use in openwrt with the code base that is under the BSP. They are quite different, and the uboot that you are using is quite limited. It can’t list or read fat partitions and so forth.

Your emmc and sd image uses that klunky mtd device re-mapping to create fake partitions based on offset in mmcblk. It would be much nicer if root.ext4 was actually used in mmc creation instead of the squashfs/jffs2. It would be much nicer to be enable ext4load in uboot and load directly from ext4 that’s on emmc.

It would be nice to have a single code base for this. I closely track your openwrt branch but I have to keep pulling preloader binaries from the BSP in order to use HDD as my root ext4 partion under openwrt.


(david s) #102

I wondering if i can boot off sata instead of emmc/sd. My emmc doesn’t work. It looks like uboot can with ext2 , do i need to recomple it…


(Frank W.) #103

Kernel itself has to lay on sd/emmc because uboot does not have sata drivers…

What do you mean with Emmc does not work? Have you changed partitionconfig and flashed preloader to boot0?


(david s) #104

I thought it was removable and i broke the connection to the board, openwrt still works off the SD card but i got a 16gb sata drive with emmc, so the boot loader has to be on the SD


(david s) #105

this is what i was looking at https://github.com/lentinj/u-boot/blob/master/doc/README.sata