ankur_r
Posts: 66
Joined: Sat Nov 12, 2016 9:49 am

Openwrt

Tue Aug 15, 2017 1:32 pm

Hi All,

I am trying to install openwrt on respbarry pi 2 model b v1.1. I have tried below provided links.

https://computers.tutsplus.com/articles ... -mac-53600
https://computers.tutsplus.com/articles ... -mac-55984
viewtopic.php?t=176641
https://wiki.openwrt.org/toh/raspberry_ ... spberry_pi

https://wiki.openwrt.org/toh/hwdata/ras ... berrypi2_b
https://wiki.openwrt.org/toh/raspberry_ ... spberry_pi
https://wiki.openwrt.org/doc/devel/feeds
https://wiki.openwrt.org/doc/howto/build
https://wiki.openwrt.org/doc/howto/buildroot.exigence

After putting I am not able to initiate even booting process. Whenever I am putting the card into card reader of board, it provides the total black screen. I have tried via directly downloading the image and after seeds update, install, git, configure , compile process. But via any of path I am not able to boot the board.

Kindly suggest some workable tutorial or steps to get this task done!!

--Thanks
Ankur

drgeoff
Posts: 9901
Joined: Wed Jan 25, 2012 6:39 pm

Re: Openwrt

Tue Aug 15, 2017 1:59 pm

Please say the exact process and steps you used to put the downloaded 76 Mbyte image on to the micro-SD card.

ankur_r
Posts: 66
Joined: Sat Nov 12, 2016 9:49 am

Re: Openwrt

Tue Aug 15, 2017 11:39 pm

I use dd command for same. i.e.

dd if=openwrt-15.05.1-brcm2708-bcm2709-sdcard-vfat-ext4.img of=/dev/sdd1

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Openwrt

Wed Aug 16, 2017 12:15 am

just a idea, as that is a OS for a router i would not expect that a terminal or even a desktop window comes up | that was WRONG |
ankur_r wrote:
Tue Aug 15, 2017 1:32 pm
Whenever I am putting the card into card reader of board, it provides the total black screen
if it boots it should know the ethernet port and start as a AP
( not STA mode! not connect to your router / so you change your RPI to a ESP8266 board? )
http://wiki.openwrt.org/doc/walkthrough_login
( so connect your laptop by ethernet cable directly)

for the RPI3 WIFI need a patch ( and a config later )
( but i never play with that / what i know )
Last edited by KLL on Thu Aug 17, 2017 3:29 am, edited 3 times in total.

drgeoff
Posts: 9901
Joined: Wed Jan 25, 2012 6:39 pm

Re: Openwrt

Wed Aug 16, 2017 7:12 am

I have not used the OpenWRT build for a RPi but I have used other builds on other routers and all of those builds had Wi-Fi turned off as initial default.

Usually OpenWRT first boot has an IP address of 192.168.1.1 and its web server GUI responding on it. The DHCP server is running and handing out addresses in the range 192.168.100 to 192.168.1.250.

https://wiki.openwrt.org/doc/walkthrough_login

Aydan
Posts: 700
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: Openwrt

Wed Aug 16, 2017 7:33 am

ankur_r wrote:
Tue Aug 15, 2017 11:39 pm
I use dd command for same. i.e.

dd if=openwrt-15.05.1-brcm2708-bcm2709-sdcard-vfat-ext4.img of=/dev/sdd1 <-- This is your problem
the correct command is this:

Code: Select all

dd if=openwrt-15.05.1-brcm2708-bcm2709-sdcard-vfat-ext4.img of=/dev/sdd
Regards
Aydan

ankur_r
Posts: 66
Joined: Sat Nov 12, 2016 9:49 am

Re: Openwrt

Wed Aug 16, 2017 9:22 am

There are two process for installation -

1. Downloading the build image from web , then with the help of dd command install it.
2. Update seeds, download , then configure make , install.

In first approach where these https://wiki.openwrt.org/doc/walkthrough_login setting will be made ? As I am downloading the prepared image.

In case of second process the configuration step is too heavy and tough, and in case 98% cases the builts will not succeed in my trials.

Therefore I request to experts kindly share some expended and descriptive solutions. It will be best if someone can through a broad and deep light if not possible then even for first approach too.

--Thanks.

drgeoff
Posts: 9901
Joined: Wed Jan 25, 2012 6:39 pm

Re: Openwrt

Wed Aug 16, 2017 9:26 am

As Aydan has pointed out, you should be 'dd'ing to the whole card, not a partition.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Openwrt

Wed Aug 16, 2017 10:19 am

confirm:
i burned that image
openwrt-15.05.1-brcm2708-bcm2709-sdcard-vfat-ext4.img
to a SD card from windows by win32diskimager
put it in a RPI2 / no wifi adapter / no hdmi keyboard mouse /
connect a ethernet cable between the RPI2 and a laptop
( but as the laptop normally connects wifi to my home router on 192.168.1.1 i logged wifi OFF )

now acc that link i give you https://wiki.openwrt.org/doc/walkthrough_login
start browser go 192.168.1.1 got that page and ( user preset root / password empty )
just by press the [login] button

if you want go RPI3...
why not use
PINN ( not Noobs ) and via internet install select
lede2RPi3 https://lede-project.org/ ( i did not try that until now)
Last edited by KLL on Thu Aug 17, 2017 7:27 am, edited 1 time in total.

ankur_r
Posts: 66
Joined: Sat Nov 12, 2016 9:49 am

Re: Openwrt

Wed Aug 16, 2017 12:54 pm

I done all as you suggested even with win32diskimager

but with 8gb noobs perfecting working
and
16gb openwrt is again total blank screen :(

all other are same only 8/16gb and noobd/openwrt is switching

please help

User avatar
Ronaldlees
Posts: 294
Joined: Sat Apr 16, 2016 4:28 pm
Location: North Carolina, US
Contact: Website

Re: Openwrt

Wed Aug 16, 2017 2:47 pm

Hello:

Do you have another Linux machine, so that you can use dd? If so, then try:
dd if=openwrt-15.05.1-brcm2708-bcm2709-sdcard-vfat-ext4.img of=/dev/sdd
Note that the "sdd" may be something else.

Code: Select all

ls -lh /dev/sd*
Type ls -lh /dev/sd* into a terminal, and the last hot plugged device (probably your uSD card) - should have the highest letter, maybe sdc,sdd, sde, etc, but without any "1" at the end - which is a partition. You don't want the "1". You can also use the usb device utility to make sure you have the correct device, since the order could be changed by repeated plugging and unplugging of other devices.

I don't know if the openwrt router has any video capability. You keep saying "blank screen" which seems to indicate you expect the HDMI video to work with openwrt. You should be able to access the openwrt management web server, over the ethernet connection, by typing this into your laptop's browser:

Code: Select all

http://192.168.1.1
Then, your browser will either connect, or not, but shouldn't usually be a "blank screen". There should be a login user/password dialog, and after entering correct credentials you should be able to modify the router's configuration, using your browser.

If your laptop is running Linux, and openwrt doesn't default to DHCP, you may have to configure the laptop's ethernet NIC address, with something like:
ifconfig ue1 192.168.1.101 netmask 255.255.255.0
where ue1 is replaced with whatever NIC device you have.
I am the Umbrella man

drgeoff
Posts: 9901
Joined: Wed Jan 25, 2012 6:39 pm

Re: Openwrt

Wed Aug 16, 2017 5:38 pm

For the THIRD time, a blank screen is to be expected.

Connect an ethernet cable between the ethernet socket of your computer and the ethernet socket of the RPi. If the computer is not set to obtain an IP address by DHCP, either change it so that it does or give it a static address 192.168.1.x where x is any number between 2 and 99 inclusive.

On the computer open a browser and put 192.168.1.1 in its address bar. If you get a page back, then OpenWRT is running.

ankur_r
Posts: 66
Joined: Sat Nov 12, 2016 9:49 am

Re: Openwrt

Wed Aug 16, 2017 6:59 pm

I have done as suggested... via ether net cable connection , assigning 192.168.1.20 ...

but when i tried 192.168.1.1 at browser then no response...

and in ping 192.168.1.1

destination unreachable...

even the green led of board is constant but in case of noobs...it is continuously blinking... i doubt is something is booting in this board ? I tried multiple times...

kindly help...

--Thanks
Ankur

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Openwrt

Thu Aug 17, 2017 2:52 am

SORRY MY FAULT!

i started off here with the / OPENWRT / possibly has no terminal.... i was so WRONG
sure, YOU CAN SEE THE BOOT
sorry when i test first time i just have no HDMI connected as i wanted to test the AP only.

confirm:
RPI2 model B v1.1
+ pwr
+ HDMI
+ ethernet direct to PC

1. power ON , NO SD card
___RED LED ON
___GREEN LED ON
___ETH LEDS OFF
___HDMI BLANK

2. power ON, empty SD card
same

3. power ON, new burned OPENWRT SD card
___RED LED ON
___GREEN LED BLINK 5 sec while boot then OFF
___ETH LEDS GREEN BLINKING, YELLOW ON
___HDMI
Image
___PC
Image
Image
Image

___HDMI
when i login by ethernet cable i NOT see a info / log on the HDMI page
when i disconnect ethernet cable see a log

2. test also HDMI terminal function
reboot with wireless keyboard mouse
just press [ENTER]
Image
Last edited by KLL on Thu Aug 17, 2017 1:52 pm, edited 1 time in total.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Openwrt

Thu Aug 17, 2017 12:36 pm

as i earlier recommended: use PINN and install LEDE
as i try that now also you can find a LOG at the end of my PINN Blog
for a router install a multi boot is very useless
but while you work and play it can make sense to have a
Raspbian and a LEDE/OpenWrt on the SD, as i not find one that is smaller as 8GB anyhow, what a waste for 75MB.

Return to “Beginners”