All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Unable to saveenv to MMC
@ 2018-12-06 18:12 Robin Polak
  2018-12-07  9:47 ` Frank Wunderlich
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Robin Polak @ 2018-12-06 18:12 UTC (permalink / raw)
  To: u-boot

Hello.

  I'm having trouble persisting my environment variables to the SD Card
onto which I have FAT formatted and then written U-Boot to using the
following command:

sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/disk2 bs=1024 seek=8

I get the following error when booting a Linksprite_pcDuino3_Nano with the
SD Card I've built:

U-Boot SPL 2018.11 (Dec 06 2018 - 17:57:48 +0000)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2018.11 (Dec 06 2018 - 17:57:48 +0000) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: LinkSprite pcDuino3 Nano
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
Loading Environment from FAT... Unable to use mmc 0:0... In:    serial
Out:   serial
Err:   serial
SCSI:  SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst

Net:   eth0: ethernet at 1c50000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
=> saveenv
Saving Environment to FAT... Unable to use mmc 0:0... Failed (1)

Thank you for any light that may be shed upon this error.

-- 
--
Robin Polak
robin at robinpolak.com
917-494-2080

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Unable to saveenv to MMC
  2018-12-06 18:12 [U-Boot] Unable to saveenv to MMC Robin Polak
@ 2018-12-07  9:47 ` Frank Wunderlich
  2018-12-09  3:20   ` Robin Polak
  2018-12-18  7:57 ` Lothar Waßmann
  2018-12-18  8:48 ` Heinrich Schuchardt
  2 siblings, 1 reply; 8+ messages in thread
From: Frank Wunderlich @ 2018-12-07  9:47 UTC (permalink / raw)
  To: u-boot

can you try to access the partiton from uboot?

ls mmc 0:0

regards Frank

> Von: "Robin Polak" <admin@robinpolak.com>
>   I'm having trouble persisting my environment variables to the SD Card
> onto which I have FAT formatted and then written U-Boot to using the
> following command:
> ...
> => saveenv
> Saving Environment to FAT... Unable to use mmc 0:0... Failed (1)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Unable to saveenv to MMC
  2018-12-07  9:47 ` Frank Wunderlich
@ 2018-12-09  3:20   ` Robin Polak
  2018-12-09  9:43     ` frank-w at public-files.de
  0 siblings, 1 reply; 8+ messages in thread
From: Robin Polak @ 2018-12-09  3:20 UTC (permalink / raw)
  To: u-boot

How would I go about validating whether I can access the partition from
u-boot?

On Fri, Dec 7, 2018 at 1:47 AM Frank Wunderlich <frank-w@public-files.de>
wrote:

> can you try to access the partiton from uboot?
>
> ls mmc 0:0
>
> regards Frank
>
> > Von: "Robin Polak" <admin@robinpolak.com>
> >   I'm having trouble persisting my environment variables to the SD Card
> > onto which I have FAT formatted and then written U-Boot to using the
> > following command:
> > ...
> > => saveenv
> > Saving Environment to FAT... Unable to use mmc 0:0... Failed (1)
>


-- 
--
Robin Polak
robin at robinpolak.com
917-494-2080

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Unable to saveenv to MMC
  2018-12-09  3:20   ` Robin Polak
@ 2018-12-09  9:43     ` frank-w at public-files.de
  2018-12-17 22:26       ` Robin Polak
  0 siblings, 1 reply; 8+ messages in thread
From: frank-w at public-files.de @ 2018-12-09  9:43 UTC (permalink / raw)
  To: u-boot

just try the ls-command i wrote in uboot-console ;)  
 

Gesendet: Sonntag, 09. Dezember 2018 um 04:20 Uhr
Von: "Robin Polak" <admin@robinpolak.com>
An: frank-w at public-files.de
Cc: u-boot at lists.denx.de
Betreff: Re: [U-Boot] Unable to saveenv to MMC

How would I go about validating whether I can access the partition from u-boot? 

On Fri, Dec 7, 2018 at 1:47 AM Frank Wunderlich <frank-w at public-files.de[mailto:frank-w@public-files.de]> wrote:can you try to access the partiton from uboot?

ls mmc 0:0

regards Frank

> Von: "Robin Polak" <admin at robinpolak.com[mailto:admin@robinpolak.com]>
>   I'm having trouble persisting my environment variables to the SD Card
> onto which I have FAT formatted and then written U-Boot to using the
> following command:
> ...
> => saveenv
> Saving Environment to FAT... Unable to use mmc 0:0... Failed (1)

--

--Robin Polakrobin at robinpolak.com[mailto:robin at robinpolak.com]
917-494-2080

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Unable to saveenv to MMC
  2018-12-09  9:43     ` frank-w at public-files.de
@ 2018-12-17 22:26       ` Robin Polak
  0 siblings, 0 replies; 8+ messages in thread
From: Robin Polak @ 2018-12-17 22:26 UTC (permalink / raw)
  To: u-boot

The output I'm getting is:

=>  ls mmc 0:0
** Unrecognized filesystem type **

On Sun, Dec 9, 2018 at 1:43 AM <frank-w@public-files.de> wrote:

> just try the ls-command i wrote in uboot-console ;)
>
>
> Gesendet: Sonntag, 09. Dezember 2018 um 04:20 Uhr
> Von: "Robin Polak" <admin@robinpolak.com>
> An: frank-w at public-files.de
> Cc: u-boot at lists.denx.de
> Betreff: Re: [U-Boot] Unable to saveenv to MMC
>
> How would I go about validating whether I can access the partition from
> u-boot?
>
> On Fri, Dec 7, 2018 at 1:47 AM Frank Wunderlich <frank-w@public-files.de
> [mailto:frank-w at public-files.de]> wrote:can you try to access the
> partiton from uboot?
>
> ls mmc 0:0
>
> regards Frank
>
> > Von: "Robin Polak" <admin at robinpolak.com[mailto:admin@robinpolak.com]>
> >   I'm having trouble persisting my environment variables to the SD Card
> > onto which I have FAT formatted and then written U-Boot to using the
> > following command:
> > ...
> > => saveenv
> > Saving Environment to FAT... Unable to use mmc 0:0... Failed (1)
>
> --
>
> --Robin Polakrobin at robinpolak.com[mailto:robin at robinpolak.com]
> 917-494-2080
>


-- 
--
Robin Polak
robin at robinpolak.com
917-494-2080

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Unable to saveenv to MMC
  2018-12-06 18:12 [U-Boot] Unable to saveenv to MMC Robin Polak
  2018-12-07  9:47 ` Frank Wunderlich
@ 2018-12-18  7:57 ` Lothar Waßmann
  2018-12-18  8:48 ` Heinrich Schuchardt
  2 siblings, 0 replies; 8+ messages in thread
From: Lothar Waßmann @ 2018-12-18  7:57 UTC (permalink / raw)
  To: u-boot

Hi,

On Thu, 6 Dec 2018 10:12:11 -0800 Robin Polak wrote:
> Hello.
> 
>   I'm having trouble persisting my environment variables to the SD Card
> onto which I have FAT formatted and then written U-Boot to using the
> following command:
> 
> sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/disk2 bs=1024 seek=8
> 
I have no idea how your SD card is partitioned but I guess that with
this command you are overwriting your FAT formatted partition.



Lothar Waßmann

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Unable to saveenv to MMC
  2018-12-06 18:12 [U-Boot] Unable to saveenv to MMC Robin Polak
  2018-12-07  9:47 ` Frank Wunderlich
  2018-12-18  7:57 ` Lothar Waßmann
@ 2018-12-18  8:48 ` Heinrich Schuchardt
  2018-12-20  1:04   ` Robin Polak
  2 siblings, 1 reply; 8+ messages in thread
From: Heinrich Schuchardt @ 2018-12-18  8:48 UTC (permalink / raw)
  To: u-boot

On 12/6/18 7:12 PM, Robin Polak wrote:
> Hello.
> 
>   I'm having trouble persisting my environment variables to the SD Card
> onto which I have FAT formatted and then written U-Boot to using the
> following command:
> 
> sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/disk2 bs=1024 seek=8
> 
> I get the following error when booting a Linksprite_pcDuino3_Nano with the
> SD Card I've built:
> 
> U-Boot SPL 2018.11 (Dec 06 2018 - 17:57:48 +0000)
> DRAM: 1024 MiB
> CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
> Trying to boot from MMC1
> 
> 
> U-Boot 2018.11 (Dec 06 2018 - 17:57:48 +0000) Allwinner Technology
> 
> CPU:   Allwinner A20 (SUN7I)
> Model: LinkSprite pcDuino3 Nano
> I2C:   ready
> DRAM:  1 GiB
> MMC:   SUNXI SD/MMC: 0
> Loading Environment from FAT... Unable to use mmc 0:0... In:    serial
> Out:   serial
> Err:   serial
> SCSI:  SATA link 0 timeout.
> AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
> flags: ncq stag pm led clo only pmp pio slum part ccc apst
> 
> Net:   eth0: ethernet at 1c50000
> starting USB...
> USB0:   USB EHCI 1.00
> USB1:   USB OHCI 1.0
> USB2:   USB EHCI 1.00
> USB3:   USB OHCI 1.0
> scanning bus 0 for devices... 1 USB Device(s) found
> scanning bus 2 for devices... 1 USB Device(s) found
>        scanning usb for storage devices... 0 Storage Device(s) found
> Hit any key to stop autoboot:  0
> => saveenv
> Saving Environment to FAT... Unable to use mmc 0:0... Failed (1)

Partitions are numbered from 1. So partition 1 would be mmc 0:1.

mmc 0:0 would require that there is no partition table and the FAT file
system starts in block 0.

Please, check the value of CONFIG_ENV_FAT_DEVICE_AND_PART in your
configuration. The default is CONFIG_ENV_FAT_DEVICE_AND_PART="0:auto"

With "auto" function blk_get_device_part_str() looks for the first
partition that has the bootable flag set.

So to analyze your problem further please look at the output of

sudo fdisk -l /dev/<your_SD_card>

assuming that you use a DOS partition table.

Best regards

Heinrich

> 
> Thank you for any light that may be shed upon this error.
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Unable to saveenv to MMC
  2018-12-18  8:48 ` Heinrich Schuchardt
@ 2018-12-20  1:04   ` Robin Polak
  0 siblings, 0 replies; 8+ messages in thread
From: Robin Polak @ 2018-12-20  1:04 UTC (permalink / raw)
  To: u-boot

Thank you for the clarification.  I've correct my issue by partitioning the
MMC storage and formatting the partition FAT.  Then burning the U-Boot
Image to 8K in on the raw media.

On Tue, Dec 18, 2018 at 12:48 AM Heinrich Schuchardt <xypron.glpk@gmx.de>
wrote:

> On 12/6/18 7:12 PM, Robin Polak wrote:
> > Hello.
> >
> >   I'm having trouble persisting my environment variables to the SD Card
> > onto which I have FAT formatted and then written U-Boot to using the
> > following command:
> >
> > sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/disk2 bs=1024 seek=8
> >
> > I get the following error when booting a Linksprite_pcDuino3_Nano with
> the
> > SD Card I've built:
> >
> > U-Boot SPL 2018.11 (Dec 06 2018 - 17:57:48 +0000)
> > DRAM: 1024 MiB
> > CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
> > Trying to boot from MMC1
> >
> >
> > U-Boot 2018.11 (Dec 06 2018 - 17:57:48 +0000) Allwinner Technology
> >
> > CPU:   Allwinner A20 (SUN7I)
> > Model: LinkSprite pcDuino3 Nano
> > I2C:   ready
> > DRAM:  1 GiB
> > MMC:   SUNXI SD/MMC: 0
> > Loading Environment from FAT... Unable to use mmc 0:0... In:    serial
> > Out:   serial
> > Err:   serial
> > SCSI:  SATA link 0 timeout.
> > AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
> > flags: ncq stag pm led clo only pmp pio slum part ccc apst
> >
> > Net:   eth0: ethernet at 1c50000
> > starting USB...
> > USB0:   USB EHCI 1.00
> > USB1:   USB OHCI 1.0
> > USB2:   USB EHCI 1.00
> > USB3:   USB OHCI 1.0
> > scanning bus 0 for devices... 1 USB Device(s) found
> > scanning bus 2 for devices... 1 USB Device(s) found
> >        scanning usb for storage devices... 0 Storage Device(s) found
> > Hit any key to stop autoboot:  0
> > => saveenv
> > Saving Environment to FAT... Unable to use mmc 0:0... Failed (1)
>
> Partitions are numbered from 1. So partition 1 would be mmc 0:1.
>
> mmc 0:0 would require that there is no partition table and the FAT file
> system starts in block 0.
>
> Please, check the value of CONFIG_ENV_FAT_DEVICE_AND_PART in your
> configuration. The default is CONFIG_ENV_FAT_DEVICE_AND_PART="0:auto"
>
> With "auto" function blk_get_device_part_str() looks for the first
> partition that has the bootable flag set.
>
> So to analyze your problem further please look at the output of
>
> sudo fdisk -l /dev/<your_SD_card>
>
> assuming that you use a DOS partition table.
>
> Best regards
>
> Heinrich
>
> >
> > Thank you for any light that may be shed upon this error.
> >
>
>

-- 
--
Robin Polak
robin at robinpolak.com
917-494-2080

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-12-20  1:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-06 18:12 [U-Boot] Unable to saveenv to MMC Robin Polak
2018-12-07  9:47 ` Frank Wunderlich
2018-12-09  3:20   ` Robin Polak
2018-12-09  9:43     ` frank-w at public-files.de
2018-12-17 22:26       ` Robin Polak
2018-12-18  7:57 ` Lothar Waßmann
2018-12-18  8:48 ` Heinrich Schuchardt
2018-12-20  1:04   ` Robin Polak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.