Giter Club home page Giter Club logo

Comments (10)

Jodes81 avatar Jodes81 commented on September 4, 2024

I just re-read the readme. Sounds like the installer can only be run over WiFi if the Pi itself has built-in WiFi - so it won't work on the older Pi's with a dongle

from raspberrypi-ua-netinst.

FooDeas avatar FooDeas commented on September 4, 2024

It can work if your dongle is supported. First: the devicename has to be wlan0. Try it and report. You should check dmesg if it doesn't work! So we can find out what's missing for your dongle.

from raspberrypi-ua-netinst.

Jodes81 avatar Jodes81 commented on September 4, 2024

@FooDeas thank you for the quick response! I'd love for UA-NetInst to work, very powerful.

First: I'll say that I did a sanity check - I got WiFi working successfully with the default Raspbian installed by NOOBS, by following this tutorial. So in theory it should work.

Second: Trying to get the raspberrypi-ua-netinst to install over WiFi, I used the default install files, with the following modifications:

installer-config.txt:

packages=nano
rootsize=+3800M
cmdline="dwc_otg.lpm_enable=0 console=serial0,115200 elevator=deadline fsck.repair=yes"
wlan_ssid=TheRoutersSSID
wlan_psk=TheRoutersPassword

Using the UART and a serial cable to my PC, I logged the following during the install, with the network cable unplugged, and just the WiFi dongle inserted. The output to the console is this:

install-console-log_1.txt

At which point it just hangs.

Then if I plug in the network cable as well, and remove and restore power to the Pi, I get this at the console when installing:

install-console-log_2.txt

Then I log in, and see what the install gives me from the get-go:

ifconfig -a

eth0      Link encap:Ethernet  HWaddr b8:27:eb:25:03:8e
          inet addr:192.168.1.11  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ba27:ebff:fe25:38e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:638 errors:0 dropped:0 overruns:0 frame:0
          TX packets:127 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:41180 (40.2 KiB)  TX bytes:11350 (11.0 KiB)

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:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:1104 (1.0 KiB)  TX bytes:1104 (1.0 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:0f:13:24:03:94
          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)

So I run shutdown now, unplug the wired ethernet, and boot up again:

ifconfig -a

eth0      Link encap:Ethernet  HWaddr b8:27:eb:25:03:8e
          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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:0f:13:24:03:94
          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)

When I run dmesg I get this:

dmesg-output.txt

Third: I try to get WiFi working after install. When I got WiFi working on the Raspbian distro via NOOBS, I copied /etc/networks/interfaces and /etc/wpa_supplicant/wpa_supplicant.conf to transfer them to the fresh install of raspberrypi-ua-netinst.

First I add this line to /etc/apt/sources.list:
deb http://archive.raspbian.org/raspbian jessie main contrib non-free

Then I run:

apt-get install usbutils -y
apt-get install wpasupplicant -y
apt-get install wireless-tools -y

And when I copy back the /etc/networks/interfaces and /etc/wpa_supplicant/wpa_supplicant.conf, and run ifup wlan0, it silently completes.

But still, when I run ifconfig -a, it still hasn't connected:

eth0      Link encap:Ethernet  HWaddr b8:27:eb:25:03:8e
          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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:0f:13:24:03:94
          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)

from raspberrypi-ua-netinst.

FooDeas avatar FooDeas commented on September 4, 2024

Please post the /etc/networks/interfaces you used at the last step.

from raspberrypi-ua-netinst.

Jodes81 avatar Jodes81 commented on September 4, 2024

/etc/networks/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0

iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

/etc/wpa_supplicant/wpa_supplicant.conf:

country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
    ssid=TheSSID
    psk=ThePassword
}

from raspberrypi-ua-netinst.

FooDeas avatar FooDeas commented on September 4, 2024

WiFi Setup in your fresh installed system

Your /etc/network/interfaces:

# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Your /etc/wpa_supplicant/wpa_supplicant.conf:

country=GB
network={
    ssid=<yourSSID>
    psk=<yourPass>
}
  • You can skip modifying /etc/apt/sources.list. Everything needed is already included except the packages wpasupplicant and firmware-realtek.

Now lets have a look at the installation procedure

  • The installer-config.txt has to include these four lines:
...
firmware_packages=1
ifname=wlan0
wlan_ssid=<yourSSID>
wlan_psk=<yourPass>
...
  • Try again with the missing line and I can see, what's missing when you check console output or dmesg if possible. (Firmware? Modules?)

from raspberrypi-ua-netinst.

Jodes81 avatar Jodes81 commented on September 4, 2024

It all works! Thank you so much!!

from raspberrypi-ua-netinst.

FooDeas avatar FooDeas commented on September 4, 2024

I don't believe the installer works using a wifi dongle (it was never intended). Using the integrated wifi of model 3 is a unique feature.
But of course, the installed system does without any problems. Glad I could help you.

from raspberrypi-ua-netinst.

Jodes81 avatar Jodes81 commented on September 4, 2024

Well, it worked for my dongle :) I honestly recommend this installer to anyone - it's something the RPi really needed

from raspberrypi-ua-netinst.

FooDeas avatar FooDeas commented on September 4, 2024

Okay... 😮
Nice to hear. Thanks for report!

from raspberrypi-ua-netinst.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.