[U-Boot] [PATCH] disk: part_dos: Use the original allocation scheme for the SPL case

Jonathan Gray jsg at jsg.id.au
Sun Oct 8 01:06:34 UTC 2017


On Sat, Oct 07, 2017 at 02:46:04PM -0300, Fabio Estevam wrote:
> Hi Jonathan,
> 
> On Thu, Oct 5, 2017 at 1:36 AM, Jonathan Gray <jsg at jsg.id.au> wrote:
> 
> > This does not seem to be a complete fix, cubox is still broken when
> > U-Boot proper loads, unless the efi loader commits are to blame
> > for introducing unaligned accesses.
> 
> I cannot reproduce the problem on mx6q cubox:

I wonder if you have the same kind of fat filesystem.

Can you try writing
https://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/miniroot-cubox-62.fs
to an sd card then write a new SPL/U-Boot at the standard raw offsets?

The disk image has:

# fdisk vnd0                  
Disk: vnd0      geometry: 368/1/100 [36864 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
*0: 0C     20   0  49 -     61   0  44 [        2048:        4096 ] FAT32L      
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 3: A6     61   0  45 -    368   0  64 [        6144:       30720 ] OpenBSD

# disklabel vnd0
# /dev/rvnd0c:
type: vnd
disk: vnd device
label: fictitious
duid: 0067acdd9b2c9bc1
flags:
bytes/sector: 512
sectors/track: 256
tracks/cylinder: 16
sectors/cylinder: 4096
cylinders: 9
total sectors: 36864
boundstart: 6144
boundend: 36864
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:            30720             6144  4.2BSD   2048 16384   240 
  c:            36864                0  unused                    
  i:             4096             2048   MSDOS

> 
> U-Boot SPL 2017.11-rc1-00101-gafbdfd8 (Oct 07 2017 - 14:41:16)
> Trying to boot from MMC1
> 
> 
> U-Boot 2017.11-rc1-00101-gafbdfd8 (Oct 07 2017 - 14:41:16 -0300)
> 
> CPU:   Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)
> CPU:   Extended Commercial temperature grade (-20C to 105C) at 23C
> Reset cause: POR
> Board: MX6 Cubox-i
> DRAM:  2 GiB
> MMC:   FSL_SDHC: 0
> No panel detected: default to HDMI
> Display: HDMI (1024x768)
> In:    serial
> Out:   serial
> Err:   serial
> Net:   FEC
> Hit any key to stop autoboot:  0
> switch to partitions #0, OK
> mmc0 is current device
> Scanning mmc 0:1...
> Found U-Boot script /boot/boot.scr
> 336 bytes read in 70 ms (3.9 KiB/s)
> ## Executing script at 12000000
> 37669 bytes read in 69 ms (532.2 KiB/s)
> 6378872 bytes read in 361 ms (16.9 MiB/s)
> ## Flattened Device Tree blob at 18000000
>    Booting using the fdt blob at 0x18000000
>    Using Device Tree in place at 18000000, end 1800c324
> 
> Starting kernel ...
> 
> [    0.000000] Booting Linux on physical CPU 0x0


More information about the U-Boot mailing list