Ben23
Posts: 11
Joined: Wed Jul 18, 2012 12:33 am

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 1:40 am

Addendum to my previous comment, though possibly offtopic: The newer kernel also produces a lot of errors about ipv6:

Code: Select all

Jul 18 00:06:56 raspberrypi kernel: [  450.900563] ipv6: disagrees about version of symbol inet_recvmsg
Jul 18 00:06:56 raspberrypi kernel: [  450.900753] ipv6: Unknown symbol inet_recvmsg (err -22)
Jul 18 00:06:56 raspberrypi kernel: [  450.901229] ipv6: disagrees about version of symbol skb_free_datagram
Jul 18 00:06:56 raspberrypi kernel: [  450.901290] ipv6: Unknown symbol skb_free_datagram (err -22)
Jul 18 00:06:56 raspberrypi kernel: [  450.901695] ipv6: disagrees about version of symbol __skb_checksum_complete
Jul 18 00:06:56 raspberrypi kernel: [  450.901781] ipv6: Unknown symbol __skb_checksum_complete (err -22)
Jul 18 00:06:56 raspberrypi kernel: [  450.902020] ipv6: disagrees about version of symbol register_sysctl_paths
Jul 18 00:06:56 raspberrypi kernel: [  450.902102] ipv6: Unknown symbol register_sysctl_paths (err -22)
Jul 18 00:06:56 raspberrypi kernel: [  450.902351] ipv6: disagrees about version of symbol xfrm_inner_extract_output
Jul 18 00:06:56 raspberrypi kernel: [  450.902405] ipv6: Unknown symbol xfrm_inner_extract_output (err -22)
Jul 18 00:06:56 raspberrypi kernel: [  450.902624] ipv6: disagrees about version of symbol skb_free_datagram_locked
Jul 18 00:06:56 raspberrypi kernel: [  450.902675] ipv6: Unknown symbol skb_free_datagram_locked (err -22)
Jul 18 00:06:56 raspberrypi kernel: [  450.903128] ipv6: disagrees about version of symbol sock_i_uid
Jul 18 00:06:56 raspberrypi kernel: [  450.903289] ipv6: Unknown symbol sock_i_uid (err -22)
Jul 18 00:06:56 raspberrypi kernel: [  450.904258] ipv6: disagrees about version of symbol tcp_v4_get_peer
Jul 18 00:06:56 raspberrypi kernel: [  450.904363] ipv6: Unknown symbol tcp_v4_get_peer (err -22)
... etc

kadamski
Posts: 187
Joined: Fri Jun 08, 2012 10:56 pm

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 6:38 am

Those errors means that you have updated kernel.img but havn't updated kernel modules in /lib/modules.

childs0
Posts: 5
Joined: Wed Jul 18, 2012 12:14 pm

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 12:30 pm

Hi all,

For comparison took 43 mins to get to the initial config screen before running any updates on an 8gb Sandisk Class4!!

childs0
Posts: 5
Joined: Wed Jul 18, 2012 12:14 pm

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 12:39 pm

appologies wrong boad re last post
[quote][/quote]

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5398
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 7:22 pm

Think I've fixed it. I was getting a more subtle speed degredation (booting in 31s rather than 26 from older start.elf) so it wasn't immediately apparent.
It was a power management issue. Removing an unneeded library had a side effect of making the power management a bit too frisky, and reducing the GPU core clock during boot.

I'll push out an official update later tonight, but if anyone wants to confirm this fixes their problem, you can test this:
https://dl.dropbox.com/u/3669512/temp/s ... manfix.elf

User avatar
ukscone
Forum Moderator
Forum Moderator
Posts: 4200
Joined: Fri Jul 29, 2011 2:51 pm
Contact: Website

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 7:37 pm

booted ok & about a minute or so to ssh in (rather than the 5+ mins before)

no errors in dmesg

ls -alR took


real 0m31.678s
user 0m5.880s
sys 0m9.130s


and no errors

ls -alR / (the whole sd card) took

real 2m46.663s
user 0m28.940s
sys 0m51.070s
and also no errors in dmesg

Ben23
Posts: 11
Joined: Wed Jul 18, 2012 12:33 am

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 7:58 pm

Nope, this is back to hanging at the logo for me.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5398
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 8:31 pm

Ben23 wrote:Nope, this is back to hanging at the logo for me.
Can you try a:
boot_delay=1
on config.txt (or 2 is that doesn't work)

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5398
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 8:33 pm

ukscone wrote:booted ok & about a minute or so to ssh in (rather than the 5+ mins before)
Okay, so real question. Does "sdhci-bcm2708.sync_after_dma=0" work?

User avatar
ukscone
Forum Moderator
Forum Moderator
Posts: 4200
Joined: Fri Jul 29, 2011 2:51 pm
Contact: Website

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 8:59 pm

dom wrote:
ukscone wrote:booted ok & about a minute or so to ssh in (rather than the 5+ mins before)
Okay, so real question. Does "sdhci-bcm2708.sync_after_dma=0" work?
went to go and add it to my cmdline.txt and it was already there (must have forgotten to remove it when i reverted back to 14th july start.elf) so guess it does work, nothing in dmesg at least

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5398
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 10:48 pm

dom wrote:I'll push out an official update later tonight
Slow boot fix has been pushed to github. rpi-update should get it.

User avatar
ukscone
Forum Moderator
Forum Moderator
Posts: 4200
Joined: Fri Jul 29, 2011 2:51 pm
Contact: Website

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 11:13 pm

updated & so far so good

Ben23
Posts: 11
Joined: Wed Jul 18, 2012 12:33 am

Re: SD Card performance in R-Pi onboard slot

Wed Jul 18, 2012 11:43 pm

dom wrote:
Ben23 wrote:Nope, this is back to hanging at the logo for me.
Can you try a:
boot_delay=1
on config.txt (or 2 is that doesn't work)
Nope. Displays logo as before, cursor flashes for $boot_delay seconds, then hangs as before.
I'm going to try swapping cards, maybe I have a bad card here.

Ben23
Posts: 11
Joined: Wed Jul 18, 2012 12:33 am

Re: SD Card performance in R-Pi onboard slot

Thu Jul 19, 2012 1:26 am

Ben23 wrote:I'm going to try swapping cards, maybe I have a bad card here.
Nope. The card doesn't make a difference. On either my 4GB class 6, or my 8GB class 4 Sandisks:
  • Standard squeeze Pi distro: boots fine, logo to getty in about 16 seconds flat.
  • wheezy beta: hangs at logo.
  • wheezy beta + latest start.elf: hangs at logo.
  • wheezy beta + start.elf from a few days ago: boots but is veeeery sloooow (well over 9 minutes on the class4 for first boot to config screen. Subsequent boots over 2 mins. Class6 a bit faster but not much.) Also exhibits DMA errors as mentioned above, keyboard missing some keypresses and auto-repeating others (tried with 2 different keyboards and 2 different power supplies, one of which is rated 2.5A).
:(

kadamski
Posts: 187
Joined: Fri Jun 08, 2012 10:56 pm

Re: SD Card performance in R-Pi onboard slot

Thu Jul 19, 2012 8:31 am

What do you mean "hangs at logo"? You mean colored splash screen before booting or raspberry logo displayed by kernel?

Ben23
Posts: 11
Joined: Wed Jul 18, 2012 12:33 am

Re: SD Card performance in R-Pi onboard slot

Thu Jul 19, 2012 10:40 pm

kadamski wrote:What do you mean "hangs at logo"? You mean colored splash screen before booting or raspberry logo displayed by kernel?
I mean the raspberry logo, that's why I said the logo ;)
Is that displayed by the kernel? And yet replacing the kernel doesn't fix the hang, but changing start.elf does?

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: SD Card performance in R-Pi onboard slot

Fri Jul 20, 2012 12:49 pm

Anything after the coloured square (displayed by start.elf) must be displayed by the kernel :)
start.elf and kernel.img are both very low-level and still evolving, and can have "subtle interactions" - this is why it's generally best to update them both at the same time using rpi-update.

kadamski
Posts: 187
Joined: Fri Jun 08, 2012 10:56 pm

Re: SD Card performance in R-Pi onboard slot

Fri Jul 20, 2012 2:40 pm

I was asking because usually when logo is dispalyed you should also see some text with kernel messages. Did you see any or there was none?

Ben23
Posts: 11
Joined: Wed Jul 18, 2012 12:33 am

Re: SD Card performance in R-Pi onboard slot

Fri Jul 20, 2012 3:04 pm

kadamski wrote:I was asking because usually when logo is dispalyed you should also see some text with kernel messages. Did you see any or there was none?
None. There is a cursor underneath which flashes briefly after displaying the logo; then it hangs with the cursor either there (but no longer flashing), or not there anymore, depending on whether it was on or off when it froze.

Ben23
Posts: 11
Joined: Wed Jul 18, 2012 12:33 am

Re: SD Card performance in R-Pi onboard slot

Fri Jul 20, 2012 3:09 pm

AndrewS wrote:Anything after the coloured square (displayed by start.elf) must be displayed by the kernel :)
start.elf and kernel.img are both very low-level and still evolving, and can have "subtle interactions" - this is why it's generally best to update them both at the same time using rpi-update.
I couldn't find rpi-update anywhere in the distro?
Also, I was running the latest kernel (unless there was one later than #171) when I first tried the latest start.elf (the one offered as start_powmanfix.elf). I said:
I've tried both the kernel that came with the beta (#125) and the latest (#171) with the same outcome (the latter both with and without the extra cmdline.txt parameter)

Ben23
Posts: 11
Joined: Wed Jul 18, 2012 12:33 am

Re: SD Card performance in R-Pi onboard slot

Fri Jul 20, 2012 3:11 pm

By the way, is this all a bit redundant now that Raspbian wheezy is out?

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: SD Card performance in R-Pi onboard slot

Fri Jul 20, 2012 3:28 pm

Ben23 wrote:By the way, is this all a bit redundant now that Raspbian wheezy is out?
See my answer in this thread http://www.raspberrypi.org/phpBB3/viewt ... 66&t=11807

hetii
Posts: 2
Joined: Sat Jul 21, 2012 10:52 am

Re: SD Card performance in R-Pi onboard slot

Sat Jul 21, 2012 10:57 am

I have some idea how speed up RPi :)

As we know SD card can operate in SDR50 mode that require 1,8v of signaling and frequency up to 100MHz

Unfortunate PI don`t have proper voltage convert on the board.
So i find this http://www.ti.com/tool/txs0206aevm

What do you think about using it or other kind of voltage translator for SD card ?

Maybe it will be possible to find some cheap card reader with such signaling converter and adopt it to PI board.

Regards.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5398
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: SD Card performance in R-Pi onboard slot

Sat Jul 21, 2012 11:32 am

Ben23 wrote: I couldn't find rpi-update anywhere in the distro?
http://elinux.org/R-Pi_Troubleshooting# ... g_firmware

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: SD Card performance in R-Pi onboard slot

Sun Jul 22, 2012 9:35 am

hetii wrote:What do you think about using it or other kind of voltage translator for SD card ?

Maybe it will be possible to find some cheap card reader with such signaling converter and adopt it to PI board.
I think it'd just be easier to use a USB SD card reader ;)
The RPF have said there's no plans for any changes to the board, in order to maintain a "fully compatible" platform. If you really wanted a faster setup, you could leave just the /boot partition on SD card and move the rootfs to a USB (flash- or hard-) drive.

Return to “General discussion”