WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: USB Flash not found / APU2  (Read 2565 times)

Offline krbvroc1

  • Newbie
  • *
  • Posts: 8
USB Flash not found / APU2
« on: April 26, 2021, 01:30:25 PM »
I am using an APU2.

If I download the 'ancient' Tiny Core 6.4 provided by pcengines, everything works. By 'works', I mean the USB 3.0 flash device is detected by Tiny Core 6.4

I tried to use the latest Core 12 download (making changes to the syslinux.cfg and initrd for serial console). It successfully boots on the APU2 to the autologin. BUT, it does not detect or show or mount the USB device it booted off of! waitusb made no difference. The device just doesn't show up.

On Tiny Core 6.4, I see:

[    5.044418] usb 3-2: new SuperSpeed USB device number 2 using xhci_hcd
[    5.066682] usb-storage 3-2:1.0: USB Mass Storage device detected
[    5.079400] scsi4 : usb-storage 3-2:1.0
[    6.085528] scsi 4:0:0:0: Direct-Access     PNY      USB 3.1 FD       PMAP PQ: 0 ANSI: 6
[    6.093614] sd 4:0:0:0: Attached scsi generic sg1 type 0
[    6.094000] sd 4:0:0:0: [sdb] 60628992 512-byte logical blocks: (31.0 GB/28.9 GiB)
[    6.094376] sd 4:0:0:0: [sdb] Write Protect is off
[    6.094387] sd 4:0:0:0: [sdb] Mode Sense: 23 00 00 00
[    6.094634] sd 4:0:0:0: [sdb] No Caching mode page found
[    6.094640] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[    6.097492]  sdb: sdb1 sdb2
[    6.119262] sd 4:0:0:0: [sdb] Attached SCSI removable disk

I do not see the same on Core 12 (even with waitusb=30).

Offline krbvroc1

  • Newbie
  • *
  • Posts: 8
Re: USB Flash not found / APU2
« Reply #1 on: April 26, 2021, 06:56:51 PM »
Just to add more information, I just tried Core 11.1 and it worked. So it is Core 12 that is broken.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: USB Flash not found / APU2
« Reply #2 on: April 27, 2021, 02:40:17 AM »
The xhci kernel configs have not changed. Possibly a kernel bug. Please compare the messages mentioning xhci, your usb controller.
The only barriers that can stop you are the ones you create yourself.

Offline krbvroc1

  • Newbie
  • *
  • Posts: 8
Re: USB Flash not found / APU2
« Reply #3 on: April 29, 2021, 04:46:51 PM »
Three things I notice:

First,

Booting core11 -
Code: [Select]
xhci_hcd 0000:00:10.0: xHCI Host Controller
xhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
xhci_hcd 0000:00:10.0: hcc params 0x014040c3 hci version 0x100 quirks 0x0000000000000410
xhci_hcd 0000:00:10.0: xHCI Host Controller
xhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 3
xhci_hcd 0000:00:10.0: Host supports USB 3.0 SuperSpeed

Bootling core12 -
Nothing

Second,
On core11 - 'lsmod' returns:
Code: [Select]
Module                  Size  Used by    Not tainted
cpufreq_conservative    12288  0
cpufreq_userspace      12288  0
cpufreq_powersave      12288  0
sdhci_pci              28672  0
cqhci                  16384  1 sdhci_pci
squashfs               24576  0
zstd_decompress        73728  1 squashfs
pinctrl_amd            12288  0
pcspkr                 12288  0
sdhci                  32768  1 sdhci_pci
xhci_pci               12288  0
mmc_core               65536  3 sdhci_pci,cqhci,sdhci
ptp                    16384  0
xhci_hcd               86016  1 xhci_pci
pps_core               12288  1 ptp
acpi_cpufreq           12288  0
loop                   20480  0
On core12 - 'lsmod' returns nothing.

Third,
The newer kernels do not include
i2c in the kernel which prohibits the 'igb' driver from working.

    [EDIT]: Added code tags.  Rich
« Last Edit: April 29, 2021, 04:59:00 PM by Rich »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11635
Re: USB Flash not found / APU2
« Reply #4 on: April 29, 2021, 04:59:48 PM »
Hi krbvroc1
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:

Quote
[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]

It will appear like this in your post:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly. Code tags also automatically add horizontal and or vertical scrollbars
to accommodate long lines and listings.

Offline krbvroc1

  • Newbie
  • *
  • Posts: 8
Re: USB Flash not found / APU2
« Reply #5 on: April 29, 2021, 05:12:51 PM »
Right after I posted, I modified and used code tags. Perhaps you got an email notification of my original reply prior to my edit?
This forum is giving me issues ... keeps complaining about 'bad cookies' when I try to Post. Simply hitting 'Post' again clears it up.

EDIT: Or maybe what you suggest is different than the 'code' BBC tag I used / got from the SMF forum help.
« Last Edit: April 29, 2021, 05:15:18 PM by krbvroc1 »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11635
Re: USB Flash not found / APU2
« Reply #6 on: April 29, 2021, 05:22:34 PM »
Hi krbvroc1
You used  pre  tags which preserve formatting but will not automatically add horizontal and or vertical scrollbars
to accommodate long lines and listings. :)

Offline krbvroc1

  • Newbie
  • *
  • Posts: 8
Re: USB Flash not found / APU2
« Reply #7 on: April 29, 2021, 05:29:23 PM »
Hi krbvroc1
You used  pre  tags which preserve formatting but will not automatically add horizontal and or vertical scrollbars
to accommodate long lines and listings. :)

Ahh, thanks! Now that you remind me, I think I manually typed the code tags first and it didn't work (or at least not in the preview) so I switched to pre. I also tried that upper right dropdown that says 'Code' and it did nothing. Thanks.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: USB Flash not found / APU2
« Reply #8 on: April 30, 2021, 02:49:43 AM »
"On core12 - 'lsmod' returns nothing." - an empty list? This means you have a mismatch somewhere, trying to use a custom kernel without the matching modules. Like using a kernel supplied by PC engines with the initrd from Core 12.
The only barriers that can stop you are the ones you create yourself.