Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Apr 2014, 07:50
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
SD card not detected: Puppy 431 [solved]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
Wognath

Joined: 19 Apr 2009
Posts: 154

PostPosted: Tue 17 Dec 2013, 17:41    Post subject:  SD card not detected: Puppy 431 [solved]  

Hello,
Puppy 431 does not detect the built-in SD card reader in my laptop. Nothing shows up in pmount or in system information. I have tried adding modules usb_storage, mmc_block, shpchp, tifm_sd. Usb flash drives work well in 431 and SD card works properly in later pups. Can someone give me a hint about how to try to fix this? Thanks
Lenovo S12 netbook, VIA Nano processor
Puppy 431 full or frugal

Last edited by Wognath on Sat 21 Dec 2013, 13:06; edited 1 time in total
Back to top
View user's profile Send private message 
ardvark


Joined: 01 Jul 2013
Posts: 742
Location: USA

PostPosted: Tue 17 Dec 2013, 20:51    Post subject:  

Hi...

Do the later Pups not run well on your system? If they run the same and you're not needing 4.3.1 for any specific reason(s), it might be easier just to use a newer version...because I'm thinking what you're wanting will possibly involve a kernel recompilation. Wink

Regards...

_________________
Our Lord and Savior Jesus Christ loves and cares about you most of all!

PLEASE READ! You don't have to end up here!
Back to top
View user's profile Send private message 
Wognath

Joined: 19 Apr 2009
Posts: 154

PostPosted: Wed 18 Dec 2013, 15:36    Post subject:  

ardvark, thanks for your reply. I do have frugal installs of several of the newest Pups, and they run well on my computer. I recently decided to revert to 431 (actually jrb's special edition) because it boots and opens applications so quickly, plus it is less cluttered and I know where things are. But besides the SD card, I am getting tired of chasing down libraries every time I add something newish...so I'll probably take your advice and abandon it eventually.
Edit: you were right, a "kernel swap" by jrb's how-to fixed the SD card problem.
Back to top
View user's profile Send private message 
ardvark


Joined: 01 Jul 2013
Posts: 742
Location: USA

PostPosted: Thu 19 Dec 2013, 07:40    Post subject:  

Wognath wrote:

Edit: you were right, a "kernel swap" by jrb's how-to fixed the SD card problem.


Cool, I'm glad you found a solution. Smile

If you would, pleas mark this thread as "solved."

Regards...
Back to top
View user's profile Send private message 
Wognath

Joined: 19 Apr 2009
Posts: 154

PostPosted: Thu 19 Dec 2013, 17:04    Post subject: Solved: sort of  

ardvark, I hesistate to mark this issue as solved because a kernel transplant is a pretty drastic step for such a small problem, and it brings about new problems...
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 7220

PostPosted: Thu 19 Dec 2013, 17:26    Post subject:  

well those who are currently supporting 4.31 might be interested in this bug ... be it kernel or something else in puppy.

I do recall some additions in the 4 series with regard to built in card readers or at least for the ones then do not appears simply as usb drives.

I take it the system does not see anything at all..not even in lspci ? (it does seem a kernel problem from the symptoms)

mike
Back to top
View user's profile Send private message 
Wognath

Joined: 19 Apr 2009
Posts: 154

PostPosted: Thu 19 Dec 2013, 23:06    Post subject:  

Quote:
I take it the system does not see anything at all..not even in lspci ?

Um, nothing I recognize. In 431 the output is
Code:
...
00:03.1 Class 0604: 1106:f353
00:0d.0 Class 0501: 1106:9530 (rev 01)
00:0f.0 Class 0101: 1106:5324
...

That 00:0d.0 thing expands to
Code:
00:0d.0 Class 0501: 1106:9530 (rev 01)
   Subsystem: 17aa:3891
   Flags: bus master, medium devsel, latency 32, IRQ 9
   Memory at f5504000 (32-bit, non-prefetchable) [size=2K]
   I/O ports at 4470 [size=8]
   Capabilities: [80] Power Management version 2

ouptut in Wheezy, where the card reader works:
Code:
...
00:03.1 PCI bridge: VIA Technologies, Inc. VX800/VX820 PCI Express Root Port
00:0d.0 FLASH memory: VIA Technologies, Inc. Secure Digital Memory Card Controller (rev 01)
00:0f.0 IDE interface: VIA Technologies, Inc. VX800 Serial ATA and EIDE Controller
...
Back to top
View user's profile Send private message 
ardvark


Joined: 01 Jul 2013
Posts: 742
Location: USA

PostPosted: Fri 20 Dec 2013, 03:33    Post subject: Re: Solved: sort of  

Wognath wrote:
ardvark, I hesistate to mark this issue as solved because a kernel transplant is a pretty drastic step for such a small problem, and it brings about new problems...


My apologies, I misunderstood what you meant and assumed that you used the instructions to get everything taken care of. Sad

Regards...
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 7220

PostPosted: Fri 20 Dec 2013, 14:35    Post subject:  

Ok so the system at least sees it...does it seem to load a specific module for it...anything in dmesg.
I did ask in a pm someone who might be more familiar with 4.31 if they have any idea and thanks for supplying the info...

mike
Back to top
View user's profile Send private message 
Wognath

Joined: 19 Apr 2009
Posts: 154

PostPosted: Fri 20 Dec 2013, 22:59    Post subject:  

mikeb,
Thanks for the suggestion. dmesg output is a serious challenge to my attention span, but I think this tells me that the module via_sdmmc (at least) is needed. In Wary, modprobe -r via_sdmmc makes the SD card disappear. In 431, module not found. I suppose my next lesson is how to compile kernel modules. Shocked
dmesg in 431:
Code:
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4

dmesg in wary (where the card reader works):
Code:
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
via_sdmmc: VIA SD/MMC Card Reader driver (C) 2008 VIA Technologies, Inc.
via_sdmmc: VIA SDMMC controller found at 0000:00:0d.0 [1106:9530] (rev 1)
via_sdmmc 0000:00:0d.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 7220

PostPosted: Sat 21 Dec 2013, 09:22    Post subject:  

via_sdmmc

great...well I think that's nailed it.... must be the need for the oddball via driver for the oddball via hardware..can't say I jump for joy with that manufacturer Very Happy .

http://cateee.net/lkddb/web-lkddb/MMC_VIA_SDMMC.html
looks like it included in kernels 2.6.31 onwards...does not mean to say it cannot be built on an older kernel. Devx and the kernel sources to build which can be done without a full rebuild.

Seems like it was done with a patch that simply did not get added until 2.6.31 http://www.atomicorp.com/download/2.6/via-sdmmc.patch
Patch and build a specific module...sounds hairy doesn't it...had to do similar to get a via drm driver working but i did not have to rebuild the whole kernel only the driver.

# apply the patch
# cd /usr/src/linux
# mkdir .tmp_versions
# make /lib/modules/2.6.24.5/kernel/drivers/mmc/host/via_sdmmc.ko
though I get a bit vague at going from a patch to a separate driver but perhaps the magic is done for us...

At this point you smile at tempestuous or patriot or someone and they do it for you. Must say its a little fiddly compared to being given a source and typing make which is the case for addon on modules. It also may or may not work if the patch does not get on with the kernel in question. I managed to get a 3 kernel usb sound module fix to build on a 2.6.24 kernel but itneeded manual furkling.
What kernel is 4.31...same as 4.12 as I do have the tools if so just not too confident.

mike
Back to top
View user's profile Send private message 
Wognath

Joined: 19 Apr 2009
Posts: 154

PostPosted: Sat 21 Dec 2013, 13:16    Post subject:  

mikeb and ardvark,
Thanks for all the information. I have marked this as solved, or at least explained.
Quote:
oddball via hardware..
The via chip was $100 cheaper!!!
Thanks again
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 7220

PostPosted: Sat 21 Dec 2013, 13:32    Post subject:  

Thought you might ... though the info might be useful for the 4.31 crew...

HP made the HP2133 using via chipset for cheapness but tried to sell it at a premium price...cheeky eh.... bleeding horrible and we still use it lol...well beggers and choosers.....

mike
Back to top
View user's profile Send private message 
Wognath

Joined: 19 Apr 2009
Posts: 154

PostPosted: Thu 26 Dec 2013, 20:41    Post subject: NOW it's solved  

This link
https://help.ubuntu.com/community/NC20#SD_.2BAC8_MMC_Card_Reader
tells how to make a via-sdmmc module. Attached is the module for the 2.6.30.5 kernel. (Also required were devx431.sfs and kernel_src-2.6.30.5-patched.sfs4.sfs from here)

#install via-sdmmc.ko /lib/modules/2.6.30.5/kernel/drivers/mmc/host
#modprobe via-sdmmc
System/boot manager/add a new module so it reboots with module loaded
via-sdmmc.tar.gz
Description 
gz

 Download 
Filename  via-sdmmc.tar.gz 
Filesize  143 Bytes 
Downloaded  36 Time(s) 
Back to top
View user's profile Send private message 
ardvark


Joined: 01 Jul 2013
Posts: 742
Location: USA

PostPosted: Thu 26 Dec 2013, 21:23    Post subject:  

Cool, I'm glad you got it fixed. Smile

Regards...
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0718s ][ Queries: 12 (0.0048s) ][ GZIP on ]