Send buglog mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/buglog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of buglog digest..."
Today's Topics:

   1. Re: Openmoko Bug #1743: Intenso SDHC 4GB gives glamo errors
      (Openmoko Public Trac)
   2. Re: Openmoko Bug #1743: Intenso SDHC 4GB gives glamo errors
      (Openmoko Public Trac)
   3. Re: Openmoko Bug #1743: Intenso SDHC 4GB gives glamo errors
      (Openmoko Public Trac)
   4. Re: Openmoko Bug #1743: Intenso SDHC 4GB gives glamo errors
      (Openmoko Public Trac)
   5. Re: Openmoko Bug #1743: Intenso SDHC 4GB gives glamo errors
      (Openmoko Public Trac)
   6. Re: Openmoko Bug #1743: Intenso SDHC 4GB gives glamo errors
      (Openmoko Public Trac)
   7. Re: Openmoko Bug #1743: Intenso SDHC 4GB gives glamo errors
      (Openmoko Public Trac)
   8. Re: Openmoko Bug #1743: Intenso SDHC 4GB gives glamo errors
      (Openmoko Public Trac)
--- Begin Message ---
#1743: Intenso SDHC 4GB gives glamo errors
---------------------+------------------------------------------------------
 Reporter:  beni     |        Owner:  openmoko-devel
     Type:  defect   |       Status:  new           
 Priority:  normal   |    Milestone:                
Component:  unknown  |      Version:                
 Severity:  normal   |   Resolution:                
 Keywords:           |     Blocking:                
Blockedby:           |  
---------------------+------------------------------------------------------

Comment(by andy):

 mmcblk0: mmc0:b368 SD    3931136KiB
  mmcblk0:
 <6>glamo-mci glamo-mci.0: Error after cmd: 0x8310

 This looks like what you would get if we timed out too soon for the card,
 ie, the card is slow.  The status shows "no data" timeout but also "data
 ready".

 If you know how to adapt the U-Boot environment, please give this a try
 with a slower SD Card clock, from the kernel commandline

 glamo_mci.sd_max_clk=10000000

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1743#comment:2>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac

--- End Message ---
--- Begin Message ---
#1743: Intenso SDHC 4GB gives glamo errors
---------------------+------------------------------------------------------
 Reporter:  beni     |        Owner:  openmoko-devel
     Type:  defect   |       Status:  new           
 Priority:  normal   |    Milestone:                
Component:  unknown  |      Version:                
 Severity:  normal   |   Resolution:                
 Keywords:           |     Blocking:                
Blockedby:           |  
---------------------+------------------------------------------------------

Comment(by beni):

 i will give this a try, but dont know how to set that setting.
 What steps must be performed?

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1743#comment:3>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac

--- End Message ---
--- Begin Message ---
#1743: Intenso SDHC 4GB gives glamo errors
---------------------+------------------------------------------------------
 Reporter:  beni     |        Owner:  openmoko-devel
     Type:  defect   |       Status:  new           
 Priority:  normal   |    Milestone:                
Component:  unknown  |      Version:                
 Severity:  normal   |   Resolution:                
 Keywords:           |     Blocking:                
Blockedby:           |  
---------------------+------------------------------------------------------

Comment(by andy):

 You need to edit U-Boot environment, exactly what to do depends on how you
 are set up.  If you don't have a debug board, you need to use minicom with
 /dev/ttyACM0 when in U-Boot.

 Once you are in and at the U-Boot prompt, you need to adapt probably
 "bootargs" environment var to have glamo_mci.sd_max_clk=10000000 on it
 too.  Use

 printenv

 to see the existing settings, then like

 setenv bootargs glamo_mci.sd_max_clk=10000000 <original text>

 then

 boot

 to boot.  Confirm your setting was seen by the kernel by

 cat /proc/cmdline

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1743#comment:4>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac

--- End Message ---
--- Begin Message ---
#1743: Intenso SDHC 4GB gives glamo errors
---------------------+------------------------------------------------------
 Reporter:  beni     |        Owner:  openmoko-devel
     Type:  defect   |       Status:  new           
 Priority:  normal   |    Milestone:                
Component:  unknown  |      Version:                
 Severity:  normal   |   Resolution:                
 Keywords:           |     Blocking:                
Blockedby:           |  
---------------------+------------------------------------------------------

Comment(by andy):

 mmcblk0: mmc0:b368 SD    3931136KiB
  mmcblk0:
 <6>glamo-mci glamo-mci.0: Error after cmd: 0x8310

 This looks like what you would get if we timed out too soon for the card,
 ie, the card is slow.  The status shows "no data" timeout but also "data
 ready".

 If you know how to adapt the U-Boot environment, please give this a try
 with a slower SD Card clock, from the kernel commandline

 glamo_mci.sd_max_clk=10000000

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1743#comment:2>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac

--- End Message ---
--- Begin Message ---
#1743: Intenso SDHC 4GB gives glamo errors
---------------------+------------------------------------------------------
 Reporter:  beni     |        Owner:  openmoko-devel
     Type:  defect   |       Status:  new           
 Priority:  normal   |    Milestone:                
Component:  unknown  |      Version:                
 Severity:  normal   |   Resolution:                
 Keywords:           |     Blocking:                
Blockedby:           |  
---------------------+------------------------------------------------------

Comment(by beni):

 Ok, thank you very much.
 I did the following:

 --- USB console ---
 GTA02v5 # setenv bootargs glamo_mci.sd_max_clk=10000000 ${bootargs_base}
 ${mtdparts}; nand read.e 0x32000000 kernel 0x200000; bootm 0x32000000
 -------------------

 After pressing [ENTER] the freerunner booted.

 Checking the commandline from ssh-connect gives:
 [EMAIL PROTECTED]:~# cat /proc/cmdline
 glamo_mci.sd_max_clk=10000000 rootfstype=jffs2 root=/dev/mtdblock6
 console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot mtdparts
 =physmap-
 
flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs)

 The card is then mounted successfully and read-/writable.

 Is there something else that can be done.


 Performance:
 [EMAIL PROTECTED]:~# date +"%s"; dd if=/dev/zero of=/media/card/bigfile
 count=200 bs=1M; date +"%s"
 1217863771
 200+0 records in
 200+0 records out
 1217863876

 => 1.90 MB/sec

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1743#comment:5>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac

--- End Message ---
--- Begin Message ---
#1743: Intenso SDHC 4GB gives glamo errors
---------------------+------------------------------------------------------
 Reporter:  beni     |        Owner:  openmoko-devel
     Type:  defect   |       Status:  new           
 Priority:  normal   |    Milestone:                
Component:  unknown  |      Version:                
 Severity:  normal   |   Resolution:                
 Keywords:           |     Blocking:                
Blockedby:           |  
---------------------+------------------------------------------------------

Comment(by andy):

 Replying to [comment:5 beni]:
 > Ok, thank you very much.
 > I did the following:
 >
 > --- USB console ---
 > GTA02v5 # setenv bootargs glamo_mci.sd_max_clk=10000000 ${bootargs_base}
 ${mtdparts}; nand read.e 0x32000000 kernel 0x200000; bootm 0x32000000

 Nice work -- one thing though you have to protect the ; with backslash
 escaping, and the $ too.  That'll be why it booted on pressing enter, it
 took the ; as command separator and finished the setenv after the first ;
 then did the other commands in order.

 If you confirm you have the escaping right, you can use

 saveenv

 command to store the changed environment in NAND, then you don't need to
 do this each boot.

 AFAIK slowing the SD CLK is the only way to impact this timeout issue for
 the slow cards, because we already max out the timeout allowed by the
 Glamo internal register.  Since it counts SD Card clocks we can work
 around slow absolute card performance by slowing the clock.

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1743#comment:6>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac

--- End Message ---
--- Begin Message ---
#1743: Intenso SDHC 4GB gives glamo errors
---------------------+------------------------------------------------------
 Reporter:  beni     |        Owner:  openmoko-devel
     Type:  defect   |       Status:  new           
 Priority:  normal   |    Milestone:                
Component:  unknown  |      Version:                
 Severity:  normal   |   Resolution:                
 Keywords:           |     Blocking:                
Blockedby:           |  
---------------------+------------------------------------------------------

Comment(by beni):

 I added a new menu option to boot with reduced clock, so i am able to
 boot with both default and modified state:

 ----
 setenv menu_9 Boot with reduced SD clock: setenv bootargs
 glamo_mci.sd_max_clk=10000000 \${bootargs_base} \${mtdparts}\; nand read.e
 0x32000000 kernel 0x200000\; bootm 0x32000000
 ----

 This gives:
 [EMAIL PROTECTED]:~# cat /proc/cmdline
 glamo_mci.sd_max_clk=10000000 rootfstype=jffs2 root=/dev/mtdblock6
 console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot mtdparts
 =physmap-
 
flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs)


 Writing speed is:
 [EMAIL PROTECTED]:~# date +%s; dd if=/dev/zero of=/media/card/bigfile
 count=200 bs=1M; date +%s;
 1217866226
 200+0 records in
 200+0 records out
 1217866331
 => 1.904761904761904762

 Reading speed is:
 [EMAIL PROTECTED]:~# date +%s; dd if=/media/card/bigfile of=/dev/null
 count=200 bs=1M; date +%s;
 1217866403
 200+0 records in
 200+0 records out
 1217866494
 => 2.197802197802197802


 Where did you got the number of 10000000 from?
 Other numbers to test?

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1743#comment:7>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac

--- End Message ---
--- Begin Message ---
#1743: Intenso SDHC 4GB gives glamo errors
---------------------+------------------------------------------------------
 Reporter:  beni     |        Owner:  openmoko-devel
     Type:  defect   |       Status:  new           
 Priority:  normal   |    Milestone:                
Component:  unknown  |      Version:                
 Severity:  normal   |   Resolution:                
 Keywords:           |     Blocking:                
Blockedby:           |  
---------------------+------------------------------------------------------

Comment(by andy):

 The numbers that are meaningful here are 50MHz divided by some integer.
 10MHz is /5 then.  The default is 16.6MHz (/3).  So you could also try
 12500000 (/4).

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1743#comment:8>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac

--- End Message ---
_______________________________________________
buglog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/buglog

Reply via email to