Debian 11.9 image + KiwiSDR 1 = Disaster [update: solution posted below]
I'd like to get a rough count of how many people are in this situation. Where your Kiwi-1 (Kiwi-1, not Kiwi-2) is bricked after being re-flashed with the Debian 11.9 image. Bricked meaning the 4 LEDs show the Debian "single LED double flash" pattern and there is no network connectivity.
Please post here or email support@kiwisdr.com
Thank you.
Comments
Here's what's happening: https://forum.beagleboard.org/t/if-cape-eeprom-part-number-field-contains-a-space-number-the-number-is-interpreted-as-init-runlevel-lol/37682/1
Probably George @m1geo will get a chuckle out of it. He understands these situations.
Not quite sure how I'm going to get people out of this. I'm thinking an image you put onto and sd card. But it doesn't re-flash the Beagle. It just does the EEPROM fix when you boot from it, then powers off.
I wonder why I don't have these problems, but my v1 kiwis have
uboot_detected_capes=KIWISDR10
Also I'm using wifi dongles, which perhaps aren't affected. But I tried it with ethernet too which works as well.
KIWISDR10
is the old value used from the capes Seeed built. My latest code in D11 v1.665 would have updated these and bricked them all..So, this may not be as widespread a problem as I first feared. I still very much want to hear from people that are having trouble though.
As @HB9TMC points out a different, older value (
KIWISDR10
) was used for the Kiwi-1s built by Seeed. And the code in D11.9/v1.663 should not change that value if you re-flash a Kiwi-1 using that image.We started bricking Kiwi-2s here because of another bug when adjusting Kiwi-2 serial numbers which incorrectly caused the part number field to be changed to "KiwiSDR 1" instead of leaving it at "KiwiSDR 2" (which does not have the bricking problem). So that's how we first noticed the issue.
But then there were a number of people on here who had trouble with the exact same symptoms (wrong LED pattern, no Ethernet). So that's why I was very concerned.
I'm not sure its related however I am still having the no ethernet issue. Also with the single led double flash.
Beagle will not take an IP address at all.
Okay, I have an sd card "EEPROM fixer" for this problem. Although it isn't completely clear to me if the problems @bob53bob and @WA2TP are having is really this issue or not. Still, it's worth trying this fix. Proceed as follows.
How to make an sd card "EEPROM fixer":
Use a working Kiwi to make the card. If you don't have another working Kiwi the sd card can also be made using a PC/Mac like the flasher sd card are. Ask here about that.
Connect to the admin page, console tab.
Use the
d.
(dee dot) command.Should look like:
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p1 3.5G 2.5G 908M 74% /
If the "Avail" column is less than 850M then you'll need to remove some files so the image file will fit. Ask here about that.
Download the script:
cd
wget http://kiwisdr.com/files/fixer.sh
(or)
wget http://kiwisdr.com/files/kiwiSDR-download-KiwiSDR-BBG_BBB-create-micro-SD-fixer.sh
Run the script:
bash fixer.sh
(or)
bash kiwiSDR-download-KiwiSDR-BBG_BBB-create-micro-SD-fixer.sh
Follow the prompts. It will ask you to insert an sd card after downloading and verifying the image file.
At the very end it will give instructions about how to use the card.
Read and follow them carefully. Note especially the need to use the BOOT button when booting off the card.
I was able to fix all the Kiwi boards I had here that were bricking Beagles at power up.
I am not in my comfort zone doing this but am looking forward to learning. Here is where I am using the 'noisy' beagle that can still connect.
I made a simpler file name:
fixer.sh
I got through it and did not have the SD card in all the way. It exited Console. Do I need to repeat the 2 hour download again ?
No. Just run the
fixer.sh
script again (or the longer filename if you downloaded that).If the script finds the file already downloaded it will use it. It will recompute the checksum to make sure the file is intact.
Why on earth did it take 2 hours to download an 850 MB file? It's 2024!
It said it was downloading at about 128K even though I have a 100mb connection. In any case, I tried it again on a new 8GB card and I believe it said no space available ?
That's crazy. No space after copying 10 MB?
Has to be a bad SD card. The lsblk says right there it's got 7.5 GB of space.
Please try a different card.
Also,
BLKFLSBUF: Inappropriate ioctl for device
is an error you'd get if not copying to a block device, which this most certainly is.Tried the 32 and another new 8 and got this each time. To be sure I get this, the new Micro SD card is to be installed in the Kiwi that I am using to create this image.... How do I do it from a PC and create the image that way ? Maybe there is something in that noisy beaglebone that is messing the process up?
I tried the script on a spare BBG and it runs fine here...
@bob53bob It is http://kiwisdr.com/files/KiwiSDR_BBG_BBB_EEPROM_fixer.img.xz if you can write it on a PC. But I wouldn't trust that BBG in this case...
That was easy test but it never did power down. After a couple minutes, the left led started blinking twice and that seemed to go on indefinitely.
It would be also interesting to know if it is getting an IP address from the router while it is blinking twice.
If not, it is probably something wrong with your BBG
Bob, what does your last comment mean? That you got the image onto the sd card using a PC successfully?
If powering up with the sd fixer card installed doesn't power down within two minutes that means you didn't hold down the boot button before powering up. Or that the image on the sd card is actually bad and the Beagle is reverting to running off the Beagle's on-board flash which of course is bricked (will double-flash forever).
Holding the boot button down before plugging the power in is tricky. The boot button is between the two circuit boards and hard to reach. Make sure you can feel it "click" when holding it down.
I got the image onto a new SD card using using Win32DiskManager. There are 2 buttons. I am holding down the one closer to the center of the board while powering up. I believe the other one is called Reset. I have tried releasing it as soon as I saw any LED lit as well as waiting until I saw flashing LED's. In no case does anything result in the power going off. my.kiwi.sdr does not find it.
Wrong buttons!!! You have to use the correct button. The instructions had a link to this: kiwisdr.com/boot.png
The boot button/switch is on the other side of the Beagle PCB from the SD card slot.
I only show 783M avail on the kiwi.
what should I delete?
Well, since it's going to rebuild on the next update anyway do:
cdp
mc
pkc
This will no effect on the server running on that Kiwi since it uses files out of
/usr/local/bin
If that's not enough we'll have to trim the log files.
OK on the wrong button...corrected. How long is a few moments ? I held it for 3 minutes and the LED's never lit. Exactly how long do I have to hold it ?
The instructions tell you precisely what to do:
"release it a few moments after all four blue LEDs light up", after you apply power. Like 2 seconds.
But the button has to be held down before power is applied. That's the critical point.
If you never get the 4 LEDs to light up then the image on the card is no good or the card is bad.
The 4 LED's never lit. I am downloading a fresh copy to be used on a fresh card but unfortunately, it is taking well over an hour to download again.
My ISP is good :
New download, new Micro SD Card, held boot button down and the powered up. Continued to hold button for 15 seconds and none of the LED's flashed.
I was able to perform the above as instructed. All appeared to work ok,
However, the beagle eth0 will not take an IP address.
When I had originally set it to static I also disabled "register at kiwisdr.com" and I set it to 10 Mbps.
could something else still be stuck?
When i connect via USB this is what ipconfig returns
I can connect to the kiwi via usb @ 192.168.7.2:8073 and i get spectrum and waterfall.
If i append with 192.168.7.2:8073/admin
i get:
No admin password set. Can only connect from same local network as kiwi.
clinet IP=192.168.7.1
@WA2TP I can't keep all these individual problems straight: Are you running Debian 11? Use the
dog
command to find out.You could try and configure the eth0 port manually. But I need to know which Debian you're running.
debian 11 bullseye.
this is the beagle that shipped with kiwi2 that is acting up.
What do these say?
cat /etc/systemd/network/eth0.network
networkctl status
ip