pavel-demin / red-pitaya-notes

Notes on the Red Pitaya Open Source Instrument
http://pavel-demin.github.io/red-pitaya-notes/
MIT License
337 stars 209 forks source link

Unable to boot Alpine 3.8 OS #803

Closed alandong93 closed 5 years ago

alandong93 commented 5 years ago

Description of the setup:

Description of the problem:

After formatting the SD card and writing an image file containing the files from red-pitaya-alpine-3.8-armhf-20181218.zip to the SD card, I insert the card into the RP and power it up. The green power LED lights up and the orange LED (LED 8) lights up partially, but no other LEDs light up.

Steps to reproduce the problem:

  1. Download red-pitaya-alpine-3.8-armhf-20181218.zip.
  2. Unzip the files (with 7-Zip).
  3. Run ImgBurn as administrator. Add the unzipped files and write a .img file. It takes a few seconds. ImgBurn also produces a .mds file.
  4. Insert the SD card into the laptop. Windows 10 prompts you to format it. Capacity says "3.72 GB". Select "FAT32 (Default)". Select "Default allocation size". Uncheck "Quick Format". Click "Start". It takes several minutes.
  5. Run Win32DiskImager as administrator. Select the .img file. Select the SD card drive. Click "Write". It takes a few seconds.
  6. Insert the SD card into the RP. Power it on. The green power LED lights up and the orange LED (LED 8) lights up partially, but no other LEDs light up.

Any help would be appreciated so, so much! Thank you for all the work you do, Pavel!

-Alan

pavel-demin commented 5 years ago

Hello Alan,

Since you mention GRC, I suppose that you're planning to use the SDR transceiver application and you're following the Getting started with GNU Radio instructions.

The steps 1, 2 and 6 from your list are correct. The steps 3, 4 and 5 aren't correct.

Copying the content of the SD card image zip file to an SD card doesn't require ImgBurn nor Win32DiskImager.

After unzipping red-pitaya-alpine-3.8-armhf-20181218.zip, the extracted files and folders can be copied using the copy and paste functionality of the Windows 10 File Explorer:

The files and folders from red-pitaya-alpine-3.8-armhf-20181218.zip should be copied to an empty FAT formatted SD card.

Best regards,

Pavel

alandong93 commented 5 years ago

Hi Pavel,

Thank you for your response. I just tried this with an empty FAT-formatted SD card and now the behavior has changed. The blue LED is on, but LED 0 (orange) is blinking and I don't believe the OS is booting. I also tried the same instructions but with FAT32 instead of FAT and observed the same behavior.

-Alan

pavel-demin commented 5 years ago

LED 0 (orange) is blinking

It's already a good sign. It means that the Zynq chip was able to read the boot.bin file from the SD card.

The boot.bin file loads the LED blinker configuration to the FPGA and starts the OS booting process.

I don't believe the OS is booting

I don't see why it wouldn't boot. Have you tried to connect to the web interface or to the USB/serial console?

I'd suggest to try the following next steps:

alandong93 commented 5 years ago

Hi Pavel,

I do not see the red LED (CPU heartbeat), which is why I think it's not booted correctly. I cannot connect to the web interface when plugged into the RP with Ethernet. My laptop Ethernet interface knows that something is connected because when I power off the RP, ipconfig /all shows Media disconnected, but I cannot see the RP Ethernet interface's MAC address with arp -a in Powershell.

-Alan

pavel-demin commented 5 years ago

I do not see the red LED (CPU heartbeat), which is why I think it's not booted correctly.

The CPU heartbeat isn't enabled in my configuration. So, it's OK that the red LED isn't blinking.

My laptop Ethernet interface knows that something is connected because when I power off the RP, ipconfig /all shows Media disconnected.

Do I understand correctly that you connecting the Red Pitaya Ethernet port to your laptop Ethernet port with a single cable?

If it's so and if there is no DHCP server running on your laptop, then in this setup the IP address of the Red Pitaya board is 192.168.1.100. It's explained in my notes about Alpine Linux: http://pavel-demin.github.io/red-pitaya-notes/alpine/#network-configuration

The IP address of the Ethernet port of your laptop should be manually set to an address in the 192.168.1.x network. For example, 192.168.1.101.

I'd also suggest to disconnect the laptop from the Wi-Fi network to make sure that there is no collisions of the IP addresses in the wired and the wireless networks.

In my opinion, it would be easier to connect both the laptop and the Red Pitaya board to a router. This way, the router would assign IP addresses to the laptop and to the Red Pitaya board via the DHCP protocol.

alandong93 commented 5 years ago

Hi Pavel,

Thank you for your help. I think what was wrong was my Ethernet IP and subnet mask, and that the OS was booting correctly. I figured out a different solution, so I won't try what you suggested. I am now using the default RP Ubuntu OS. I downloaded your sdr_transceiver application from the bazaar and it's working for me beautifully. I can't thank you enough for all the work you do to support the RP community! Thank so much!

Best, Alan