-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
256MiB SDcard in pizeroW does not boot bootcode.bin #1351
Comments
I've not heard of (and I can't think of a reason for) any size check in the ROM or bootloader. It seems more likely that some aspect of the formatting is incompatible with the loaders. Since it sounds like you have a reasonable supply of cards of various kinds, can you try using a tool like WinDiskImager (or dd, if you're a CLI type) to make a .img file of a programmed but not-working 256MB card. You can then write that image to a spare 32GB card, and also upload it to DropBox, Google Drive etc. so that we can examine it. |
I'm a linux user. So... you want me to format a fat32 sdcard, copy bootcode.bin to it, and then make 256MiB and 32GiB images, and upload them? |
No, that's not what I asked:
If you don't have a spare card for step 3, just upload the .img. |
If you have a USB UART and the GPIO pins available you could try this to see if the ROM is able to run bootcode.bin 256MiB FAT partitions are pretty common, it's the default now on Raspbian. Unfortunately, it's possible that a 256MiB is an old SDv1 card and isn't supported by the 2835 ROM. However, as @pelwell says it would be useful to see the FAT image in-case there's something odd there. Details of the card would be useful |
ok, just the 256MiB version.. because: see at bottom. https://www.dropbox.com/s/ekepal65ban8x2p/256MiB_sdcard.img?dl=0 Formatted fat32 with partitionmanager 3.3.1 downloaded from:
This is almost certainly the problem. They seem to work fine in all other respects. |
Based on your 'SDv1' above it looks like SDHC | SDXC | SDUC are good, and SD (formatted FAT16) is not. https://en.wikipedia.org/wiki/SD_card#Comparison |
I'm not saying that the ROM explicitly does not support SDv1 but older standard capacity SD cards tend to be more awkward. SD-HC is very well tested and the cards tend to be much better. FAT16 is supported, you can try creating a small FAT16 partition on a larger HC card to verify FAT support. |
I will test that eventually, but it's essentially moot. i'm only using small cards - that don't seem to exist in SDHC types - because they are cheap and only need to hold 52K. But reading 52k for a reboot or two every few months shouldn't tax a new $5 SDHC too heavily, so I guess I can afford to buy one or two :) |
Describe the bug
Cannot boot via bootcode.bin on 256MiB sdcard to USB ssd
To reproduce
Copy bootcode.bin to freshly FAT16 or FAT32 formatted 256MiB SDcard
Plug in USB3 SSD drive
Attempt to boot
Failure.
Without plugging in HDMI I can't say for sure what the error is, but given the total absence of flashing LED I have to assume the firmware does a check for SDcard size prior to attempting boot.
I have tried two of the ten 256Mib SDcards I just bought, and neither work with FAT32 or FAT16, yet a 32GiB card works fine.
Expected behaviour
Booting via sdcard to OS on USB ssd should work regardeless of SDcard size.
Using a 32GiB card to boot a 51KiB bootloader is undesirable.
But to be clear, I CAN do this, and AM doing this presently. I just want to use a smaller, cheaper sdcard for this extremely mundane purpose.
System
PiZeroW
pi@pizero:~ $ cat /etc/rpi-issue
Raspberry Pi reference 2019-09-26
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 80d486687ea77d31fc3fc13cf3a2f8b464e129be, stage2
pi@pizero:~ $ vcgencmd version
Feb 12 2020 12:38:08
Copyright (c) 2012 Broadcom
version 53a54c770c493957d99bf49762dfabc4eee00e45 (clean) (release) (start)
pi@pizero:~ $ uname -a
Linux pizero 4.19.97+ #1294 Thu Jan 30 13:10:54 GMT 2020 armv6l GNU/Linux
The text was updated successfully, but these errors were encountered: