timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 198
Joined: Thu Jun 21, 2018 4:30 pm

Re: pi 4 32GB sd card doesn't work.

Mon Aug 19, 2019 1:20 pm

brohan wrote:
Mon Aug 19, 2019 12:02 am
I then used the SDCard Copier to copy from the mmcblk0 to sda. I then safely shut down the pi, , put the 32GB card in the sd card slot and powered on the pi. Same results as I have been having, rainbow, then the raspberries, then dead.
The four raspberries indicate that bootloader and start.elf have run and loaded the kernel into memory so at least the boot partition seems to be ok

Do you get any more output if you edit cmdline.txt as follows ?

1) Remove the words 'quiet' and 'splash'
2) Add 'debug'"

If would also be useful to see the contents of "sudo /dev/fdisk -l /dev/sda" if you can examine the card in another Pi

brohan
Posts: 23
Joined: Fri Aug 16, 2019 2:47 am

Re: pi 4 32GB sd card doesn't work.

Mon Aug 19, 2019 7:31 pm

I changed the cmdline.txt to read:
"dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=698e33bd-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait init=/usr/lib/raspi-config/init_resize.sh debug plymouth.ignore-serial-consoles
"

Upon reboot, here is the video. Note that you can use "," and "." to go frame by frame:

https://www.youtube.com/watch?v=cCFSL8bplrw

The contents of the Raspbian full sd card with fdisk are seen here:

https://ibb.co/Km6v5jD

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5085
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: pi 4 32GB sd card doesn't work.

Mon Aug 19, 2019 10:10 pm

@brohan, apologies for not getting back to you sooner, but I did flag this thread up to the other mods and I see that @timg236 has asked for more info. & you've responded to that. (Stepping through the video AFAICT it looks as if the rootfs is not being mounted for some reason) W.r.t. to the rawcid info. (which cannot be read via a USB-based uSDHC card reader) FWIW, here are the decoded cids:

Code: Select all

pi@raspiP4B4-32GbI:~/pi_tools_etc/usdcard_tools-0.0 $ cat raspiP4B4-32GbI_brohan16Gb_cid.log 
raspiP4B4-32GbI sdcard cid status:
RAWCID 4134325344313647200000466f012a00
MID    0x41
OID    0x3432 (42)
PNM    0x5344313647 (SD16G)
PRV    0x20 (2.0)
PSN    0x0000466f
RSVD   0x0
MDT    0x12a (10/2018)
CRC+1  0x00

pi@raspiP4B4-32GbI:~/pi_tools_etc/usdcard_tools-0.0 $ cat raspiP4B4-32GbI_brohanPiKit_cid.log 
raspiP4B4-32GbI sdcard cid status:
RAWCID 1b534d454231515430633a5ffc013301
MID    0x1b
OID    0x534d (SM)
PNM    0x4542315154 (EB1QT)
PRV    0x30 (3.0)
PSN    0x633a5ffc
RSVD   0x0
MDT    0x133 (3/2019)
CRC+1  0x01

pi@raspiP4B4-32GbI:~/pi_tools_etc/usdcard_tools-0.0 $ cat raspiP4B4-32GbI_brohan32Gb#1_cid.log 
raspiP4B4-32GbI sdcard cid status:
RAWCID 1b534d4542315154308b51638e012c01
MID    0x1b
OID    0x534d (SM)
PNM    0x4542315154 (EB1QT)
PRV    0x30 (3.0)
PSN    0x8b51638e
RSVD   0x0
MDT    0x12c (12/2018)
CRC+1  0x01

pi@raspiP4B4-32GbI:~/pi_tools_etc/usdcard_tools-0.0 $ cat raspiP4B4-32GbI_brohan32Gb#2_cid.log 
raspiP4B4-32GbI sdcard cid status:
RAWCID 1b534d4542315154308bf46593012c01
MID    0x1b
OID    0x534d (SM)
PNM    0x4542315154 (EB1QT)
PRV    0x30 (3.0)
PSN    0x8bf46593
RSVD   0x0
MDT    0x12c (12/2018)
CRC+1  0x01
What is somewhat intriguing/puzzling is that the two Samsung cards are slightly newer versions of one that has worked O.K. in my P4B:

Code: Select all

pi@raspiP4B4-32GbI:~/pi_tools_etc/usdcard_tools-0.0 $ cat raspiP4B4-32GbSM_cid.log
raspiP4B4-32GbSM sdcard cid status:
RAWCID 1b534d454231515430d0e95fc8012500
MID    0x1b
OID    0x534d (SM)
PNM    0x4542315154 (EB1QT)
PRV    0x30 (3.0)
PSN    0xd0e95fc8
RSVD   0x0
MDT    0x125 (5/2018)
CRC+1  0x00
Also, as indicated by the P4B's hostname etc. I'm currently using a 32Gb Integral card:

Code: Select all

pi@raspiP4B4-32GbI:~/pi_tools_etc/usdcard_tools-0.0 $ ./src/cid_decoder -X
cid_decoder.c Version 0.01 {Exp}, [12/06/2019], (c) F_Trevor_Gowen
		<--| Package usdcard_tools_0.0 |-->
<cid_decoder.arg>	fopen: No such file or directory
cid_decoder.arg not found
Initialising cid ...
Executing 'cat /sys/block/mmcblk0/device/cid > rawcid' ...
Opened rawcid ...
824a544e4361726410218182d900dc00
raspiP4B4-32GbI sdcard cid status:
RAWCID 824a544e4361726410218182d900dc00
MID    0x82
OID    0x4a54 (JT)
PNM    0x4e43617264 (NCard)
PRV    0x10 (1.0)
PSN    0x218182d9
RSVD   0x0
MDT    0x0dc (12/2013)
CRC+1  0x00
Trev.
Still running Raspbian Jessie on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W) but Stretch on my 2xP3A+, P3B+, P3B, B+, A+ and a B2. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

brohan
Posts: 23
Joined: Fri Aug 16, 2019 2:47 am

Re: pi 4 32GB sd card doesn't work.

Mon Aug 19, 2019 10:59 pm

Is there a way that I can check the sd card reader? lsusb returns:

lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0603:0002 Novatek Microelectronics Corp.
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5085
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: pi 4 32GB sd card doesn't work.

Mon Aug 19, 2019 11:16 pm

brohan wrote:
Mon Aug 19, 2019 10:59 pm
Is there a way that I can check the sd card reader? lsusb returns:

lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0603:0002 Novatek Microelectronics Corp.
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
What does lsusb -t and usb-devices report with the card reader plugged in to the P4B (USB 2 port)?
Most of the devices I've used in the past are listed here: https://www.cpmspectrepi.uk/raspberry_p ... aders.html
and the USB3.0 device I use with my P4B here: https://www.cpmspectrepi.uk/raspberry_p ... oSD_Reader

FWIW, this is what my P4B reports for lsusb -t and lsusb at the moment (I'm logged in here from it!):

Code: Select all

pi@raspiP4B4-32GbI:~ $ lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
            |__ Port 1: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            |__ Port 3: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            |__ Port 3: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
pi@raspiP4B4-32GbI:~ $ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 04d9:1503 Holtek Semiconductor, Inc. Keyboard
Bus 001 Device 004: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
NB:My keyboard and mouse are connected via a USB switching hub** to either the P4B or a gigabyte brix PC
** This one: https://www.cpmspectrepi.uk/raspberry_p ... ngHub.html
Trev.
Still running Raspbian Jessie on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W) but Stretch on my 2xP3A+, P3B+, P3B, B+, A+ and a B2. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 198
Joined: Thu Jun 21, 2018 4:30 pm

Re: pi 4 32GB sd card doesn't work.

Tue Aug 20, 2019 7:44 am

brohan wrote:
Mon Aug 19, 2019 7:31 pm
I changed the cmdline.txt to read:
"dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=698e33bd-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait init=/usr/lib/raspi-config/init_resize.sh debug plymouth.ignore-serial-consoles
"

Upon reboot, here is the video. Note that you can use "," and "." to go frame by frame:

https://www.youtube.com/watch?v=cCFSL8bplrw

The contents of the Raspbian full sd card with fdisk are seen here:

https://ibb.co/Km6v5jD
Temporarily commenting out "dtoverlay=vc4-fkms-v3d" might avoid the mode-set where the console output is lost. You should also force the HDMI mode in-case it's the mode-switch that's going wrong
hdmi_mode=1
hdmi_group=16

I can see the last line of the console is "Waiting for root device PARTUUID=698C33bd-02". It might be worth attempting to use the block device name instead of the UUID in-case that is wrong.

cmdline.txt
root=/dev/mmcblk0p2

you would also need to mount the root file system /dev/sda2 and edit /etc/fstab so that
/boot mounts /dev/mmcblk0p1
/ is /dev/mmcblk0p1

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5085
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: pi 4 32GB sd card doesn't work.

Tue Aug 20, 2019 12:44 pm

Just a quick update w.r.t. to my Samsung 32Gb card that's very similar to @brohan's. Having updated the bootloader on my P4B (everything still worked fine with the card in use during my previous posts) I used the P4B + the USB 3.0 stick & card reader's to download and install the current release of Rapsbian + Desktop on my Samsung card (overwriting the older install). All boots fine, just had to comment out "dtoverlay=vc4-fkms-v3d" so the display did not overscan on my TV display (known issue for me) and am currently posting this on said setup. @timg236 is there anything about this, working, setup on an equivalent 32Gb card that may be worth posting for comparison with @brohan's?
Trev.
Still running Raspbian Jessie on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W) but Stretch on my 2xP3A+, P3B+, P3B, B+, A+ and a B2. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

brohan
Posts: 23
Joined: Fri Aug 16, 2019 2:47 am

Re: pi 4 32GB sd card doesn't work.

Tue Aug 20, 2019 4:50 pm

The results of lsusb -t and usb-devices when I have a keyboard, mouse, USB stick and the sd card reader plugged into a USB 2 port with a 64GB SanDisk card in the reader

Code: Select all

  lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 7, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 2: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 3: Dev 8, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        |__ Port 3: Dev 8, If 1, Class=Chip/SmartCard, Driver=, 480M
        |__ Port 4: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
 

Code: Select all

  
usb-devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=04.19
S:  Manufacturer=Linux 4.19.66-v7l+ xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:01:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 4
D:  Ver= 2.10 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2109 ProdID=3431 Rev=04.20
S:  Product=USB2.0 Hub
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  7 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=154b ProdID=009f Rev=11.00
S:  Manufacturer=PNY Technologies
S:  Product=USB 2.0 FD
S:  SerialNumber=0400000000011988
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=200mA
I:  If#=0x0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#=  3 Spd=1.5 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=413c ProdID=2113 Rev=33.08
S:  Product=Dell KB216 Wired Keyboard
C:  #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid
I:  If#=0x1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid

T:  Bus=01 Lev=02 Prnt=02 Port=02 Cnt=03 Dev#=  8 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=048d ProdID=1366 Rev=01.00
S:  Manufacturer=Generic 
S:  Product=MultiCard Device
S:  SerialNumber=0000000000000006
C:  #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#=0x0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
I:  If#=0x1 Alt= 0 #EPs= 3 Cls=0b(scard) Sub=00 Prot=00 Driver=(none)

T:  Bus=01 Lev=02 Prnt=02 Port=03 Cnt=04 Dev#=  5 Spd=1.5 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=413c ProdID=301a Rev=01.00
S:  Manufacturer=PixArt
S:  Product=Dell MS116 USB Optical Mouse
C:  #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 4
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=04.19
S:  Manufacturer=Linux 4.19.66-v7l+ xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:01:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=04.19
S:  Manufacturer=Linux 4.19.66-v7l+ dwc_otg_hcd
S:  Product=DWC OTG Controller
S:  SerialNumber=fe980000.usb
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

I ordered a 64 GB card before this began, which I received today. For fun (just to see any diff from the 32Gb to this new 64GB SanDisk Extreme C10, U3, V30I used this now new card in the sd card reader in the Pi to burn the Rasbian full image. I edited the cmdline.txt as well as the config.txt per the suggestions for video output as well as different boot device spec in a follow up post.

brohan
Posts: 23
Joined: Fri Aug 16, 2019 2:47 am

Re: pi 4 32GB sd card doesn't work.

Tue Aug 20, 2019 7:12 pm

After the changes to the 64GB sd card with Raspbian full, the results are the same as I was getting before (regarding the boot, after changing the fstab).

The fstab file after changes:

https://ibb.co/x5bByqz

Last frame of the boot sequence:

https://ibb.co/wBGkY8Z

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 198
Joined: Thu Jun 21, 2018 4:30 pm

Re: pi 4 32GB sd card doesn't work.

Wed Aug 21, 2019 9:06 am

The cmdline.txt changes looks correct but /etc/fstab is wrong. You've replaced the mount point instead of the device

It should look like this instead

Code: Select all

/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /                   ext4    defaults,noatime  0       
"@timg236 is there anything about this, working, setup on an equivalent 32Gb card that may be worth posting for comparison with @brohan's?"

Quite a few people use Samsung 32GB EVO cards and installing Buster directly seems to work fine, I suspect the problem occurred during when cloning from a 16GB card to a 32GB. This is why I suspect the partition UIIDs are wrong. Although, it's pretty difficult to debug more without a UART cable.

brohan
Posts: 23
Joined: Fri Aug 16, 2019 2:47 am

Re: pi 4 32GB sd card doesn't work.

Wed Aug 21, 2019 1:33 pm

This last set up I did by burning the image onto a new 64GB card using the multi card reader and my work laptop which is about a year old running Windows 10 (1903).

I will make the changes to fstab and report back in a few hours.

brohan
Posts: 23
Joined: Fri Aug 16, 2019 2:47 am

Re: pi 4 32GB sd card doesn't work.

Wed Aug 21, 2019 3:38 pm

Results from modifying the fstab to the correct settings:

https://ibb.co/z2BW3BJ
https://ibb.co/j6TJjc3

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 198
Joined: Thu Jun 21, 2018 4:30 pm

Re: pi 4 32GB sd card doesn't work.

Wed Aug 21, 2019 7:43 pm

Just to double check but if you flash the buster download image rather than the cloned image does that work?

brohan
Posts: 23
Joined: Fri Aug 16, 2019 2:47 am

Re: pi 4 32GB sd card doesn't work.

Thu Aug 22, 2019 2:12 am

I only attempted the cloned image once. Everything else (including the 64GB card) has been with the downloaded image.

JPICentral
Posts: 52
Joined: Wed Jul 18, 2018 3:22 am
Location: Next to the Mojave Desert at 100+ Degree Fahrenheit

Re: pi 4 32GB sd card doesn't work.

Thu Aug 22, 2019 7:55 am

I have multiple SDHC cards of 32gb that include Kingston SanDisk and Samsung etc. My first comment is that all work with Stretch. I also have various reader/writer. With Buster only the Samsung work reliably. I have used every SD card test I could find all indicating ZERO issues of any kind on the SDHC cards that do not work with Buster.

So I ask what is different in Buster? My hardware is the same. Just the software changed Stretch to Buster. On Stretch it doesen't make any difference everything works.

I have used the SD Card Formatter, balenaEtcher and Win32Disk Image. I even tried dd on the cards.

The Buster SD Card Copier has problems with creating partitions on almost every card except the Samsung.

When I take the failed cards and switch them to Stretch everything works perfectly. Keep in mind I am using the same image on several different Win10 v1903 platforms and switching between the various image writers. No matter what I put on the SD card or which Vendor's SD card for Butch and launching the OS from the same SD card on various RPI Butch has problems making a copy that works. This includes the download of the image and an updated OS on 20190821 -- different SD cards.

Whatever it is Buster seems to be the cause at my location.

Maybe said another way is that Stretch does not have a problem with 32gb cards from multiple vendors like Buster does on my different RPI.

Here is another thing I have noticed. Buster and its SD Card Copy has no issues with SSD and HD up to the largest that I have tried (2Tb). But it did have problems with the only 16gb SDHC card that I have (partition creation). Stretch works with enery card and drive that I have as well as all the various RPI.

Correction. After the Buster update this evening the SD Card Copy in buster copied something weird fron the 32gb SDHC to the 2tb HD -- okay don't focus on this part since my testing to learn I try everything including copying the OS from the smallest source to the largest destination and from the largest source 2tb to the 32gb SDHC everything has worked perfectly on Stretch -- the boot only got to the four Raspberries and did not display the white text next. The green flash was about every 2 seconds -- hung!

Now my work around for cards that Buster cannot create the partition or that will not boot or just hang.

I down load the latest NOOBS unzip it drag and drop the extracted files to the SDHC card that Buster does not like. It works for computing and updating. Strangly I can use SD Card Copy to create a working backup Buster on the 32gb Samsung cards it likes.

Go Figure?

It works here. I hope it will help others experiencing this issue.

Oh one last thought. Keep the cards Buster does not like separate. They work good as the OS but not for backing up the OS.

Please keep in mind that I am a beginner who is using a lot of trial and mistake learning. My work around should be taken under advisement before taking it seriously for your issue.

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 198
Joined: Thu Jun 21, 2018 4:30 pm

Re: pi 4 32GB sd card doesn't work.

Fri Aug 23, 2019 8:43 am

brohan wrote:
Thu Aug 22, 2019 2:12 am
I only attempted the cloned image once. Everything else (including the 64GB card) has been with the downloaded image.
It might be worth disabling UHS mode. The bootloader and the firmware run without this so maybe Linux is getting stuck when enabling UHS mode e.g. board problem ?

Add "sdhci.debug_quirks2=4" to cmdline.txt

If you don't have a USB UART cable but have another Pi/PC that can run Wireshark then you can update cmdline.txt to send console messages over UDP
https://www.kernel.org/doc/Documentatio ... onsole.txt

Unfortunately, there won't be anything until Linux starts the network interface it might provide slightly more information
https://www.kernel.org/doc/Documentatio ... onsole.txt

austingeek
Posts: 1
Joined: Tue Aug 27, 2019 6:16 pm

Re: pi 4 32GB sd card doesn't work.

Tue Aug 27, 2019 6:31 pm

To add another data point to this thread: I have 45 units doing digital signage, all using 32GB Samsung Evo Plus cards and vanilla Buster. 25 units are 3B+, and 20 are Pi 4s. They run identical images and use a readonly root volume, so I'd expect the boot sequence to be 100% consistent. They reboot nightly, and thus far the 3B+ units have experienced zero boot failures, whereas the Pi 4s fail to boot on the order of 2% of the time, resulting in a blank screen and the device not checking in over the network. I've not observed a failed boot sequence, only the aftermath, but seems likely to be the same issue. Once a boot failure has occurred, power cycling the device brings it back.

I've put some of the units into a tighter reboot loop to ensure that the problem is reproducible on a reasonable timescale. I'll try out the UHS disable; any other diagnostics worth attempting?

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 198
Joined: Thu Jun 21, 2018 4:30 pm

Re: pi 4 32GB sd card doesn't work.

Wed Aug 28, 2019 8:21 am

austingeek wrote:
Tue Aug 27, 2019 6:31 pm
I've put some of the units into a tighter reboot loop to ensure that the problem is reproducible on a reasonable timescale. I'll try out the UHS disable; any other diagnostics worth attempting?
The most useful diagnostics would be a UART cable with BOOT_UART=1 in the bootloader.
https://www.raspberrypi.org/documentati ... teeprom.md

It's possible that Linux has got stuck before the watchdog register is written to which actually does the reset.

brohan
Posts: 23
Joined: Fri Aug 16, 2019 2:47 am

Re: pi 4 32GB sd card doesn't work.

Wed Aug 28, 2019 11:34 am

I do have a USB UART. After making the connections, simply boot the pi and watch the serial console?

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5085
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: pi 4 32GB sd card doesn't work.

Wed Aug 28, 2019 12:27 pm

brohan wrote:
Wed Aug 28, 2019 11:34 am
I do have a USB UART. After making the connections, simply boot the pi and watch the serial console?
If your serial console program has the feature it may be worth saving/recording a log file (I have one from GtkTerm for a working uSDHC card for comparison if useful).
Trev.
Still running Raspbian Jessie on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W) but Stretch on my 2xP3A+, P3B+, P3B, B+, A+ and a B2. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 198
Joined: Thu Jun 21, 2018 4:30 pm

Re: pi 4 32GB sd card doesn't work.

Wed Aug 28, 2019 1:06 pm

brohan wrote:
Wed Aug 28, 2019 11:34 am
I do have a USB UART. After making the connections, simply boot the pi and watch the serial console?
Since it looks as though your system has the Linux kernel running it should just be a simple config.txt / cmdline.txt

https://www.raspberrypi.org/documentati ... on/uart.md

config.txt
enable_uart=1
dtoverlay=pi3-disable-but

In cmdline.txt removing 'quiet' and adding 'debug' should give more output

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5085
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: pi 4 32GB sd card doesn't work.

Wed Aug 28, 2019 1:57 pm

timg236 wrote:
Wed Aug 28, 2019 1:06 pm
brohan wrote:
Wed Aug 28, 2019 11:34 am
I do have a USB UART. After making the connections, simply boot the pi and watch the serial console?
Since it looks as though your system has the Linux kernel running it should just be a simple config.txt / cmdline.txt

https://www.raspberrypi.org/documentati ... on/uart.md

config.txt
enable_uart=1
dtoverlay=pi3-disable-but

In cmdline.txt removing 'quiet' and adding 'debug' should give more output
FWIW, this is what I was/am using (ie. no debug):

Code: Select all

pi@raspiP4B4-32GbI:~ $ cat /boot/cmdline.txt 
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=17928762-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
pi@raspiP4B4-32GbI:~ $ tail /boot/config.txt 
dtparam=audio=on

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
# dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d
enable_uart=1
(Posted from said P4B, uSDHC card is an Integral 32Gb fully updated/upgraded, need to do similar with the Samsung card at some point)

Trev.
Still running Raspbian Jessie on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W) but Stretch on my 2xP3A+, P3B+, P3B, B+, A+ and a B2. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

brohan
Posts: 23
Joined: Fri Aug 16, 2019 2:47 am

Re: pi 4 32GB sd card doesn't work.

Fri Aug 30, 2019 2:28 am

Got a replacement pi today. It boots off all 32gb and the 64gb cards that the other didn't. It was a pi issue

I will hook up a uart and post the results to the old one.

What linux file do I look in for boot error logs?

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 198
Joined: Thu Jun 21, 2018 4:30 pm

Re: pi 4 32GB sd card doesn't work.

Fri Aug 30, 2019 8:54 am

brohan wrote:
Fri Aug 30, 2019 2:28 am
Got a replacement pi today. It boots off all 32gb and the 64gb cards that the other didn't. It was a pi issue

I will hook up a uart and post the results to the old one.

What linux file do I look in for boot error logs?
Startup errors would be in the /var/log/syslog however, it look as though it wasn't getting as far as mounting the root file-system so there won't be any logs. Capturing the UART output with enable_uart=1 in config.txt and quiet removed in cmdline.txt might help.
Does it ever get to a login prompt via the UART ?

brohan
Posts: 23
Joined: Fri Aug 16, 2019 2:47 am

Re: pi 4 32GB sd card doesn't work.

Sun Sep 01, 2019 3:05 pm

I connected the pi4 in question to UART and used picocom, here are the results:

cmdline.txt:

Code: Select all

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=408190a6-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait debug plymouth.ignore-serial-consoles

fstab:

Code: Select all

proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that

picocom output:

Code: Select all

sudo picocom -b 115200 -r -l /dev/ttyUSB0                       1 ↵  3  192.168.1.146  
picocom v3.1

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : yes
hangup is      : no
nolock is      : yes
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

Type [C-a] [C-h] to see available commands
Terminal ready
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.57-v7l+ (dom@buildbot) (gcc version 4.9.3 (c usbfs
[    0.072781] usbcore: registered new interface driver hub
[    0.072888] usbcore: registered new device driver usb
[metric registered
[    0.214966] Asymmetric key parser 'x509' registered
[    0.215086] bounce: pool size: 64 pages
[    0.21ci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.305314] pci 0000:01:00.0: PME# supported from D0 D3cold
[ 127] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.308200] pci 0000:00:00.0: enabling device (0140 -> get enet-eee clock
[    0.335394] unimac-mdio unimac-mdio.-19: DMA mask not set
[    0.351613] libphy: bcmgenet MII bus: probe0:01:00.0: new USB bus registered, assigned bus number 1
[    0.395178] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci versiotfm: SDHCI platform and OF driver helper
[    0.834641] ledtrig-cpu: registered to indicate activity on CPUs
[    0.834795] hietlink socket
[    0.844169] NET: Registered protocol family 17
[    0.844253] Key type dns_resolver registered
[    0.844649] Registering SWP/SWPB emulation handler
[    0.845231] registered taskstats version 1
[    0.845259] Loading compiled-in X.50

Return to “Troubleshooting”