I'm trying to boot imx6q sabresd board in linux and getting struck in d middle

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I'm trying to boot imx6q sabresd board in linux and getting struck in d middle

3,473 Views
raguram
Contributor I

I'm trying to boot imx6q sabresd board in linux, I'm getting the boot prints as,

U-Boot 2015.04-rc3-00188-gb79dadf (Mar 12 2015 - 12:44:07)

CPU:   Freescale i.MX6Q rev1.2 at 792 MHz

CPU:   Temperature 31 C

Reset cause: POR

Board: MX6-SabreSD

I2C:   ready

DRAM:  1 GiB

PMIC:  PFUZE100 ID=0x10

MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2

*** Warning - bad CRC, using default environment

No panel detected: default to Hannstar-XGA                                     

Display: Hannstar-XGA (1024x768)                                               

In:    serial                                                                  

Out:   serial                                                                  

Err:   serial                                                                  

Net:   FEC [PRIME]                                                             

Hit any key to stop autoboot:  0                                               

switch to partitions #0, OK                                                    

mmc1 is current device                                                         

** Unrecognized filesystem type **                                             

** Unrecognized filesystem type **                                             

Booting from net ...                                                           

FEC Waiting for PHY auto negotiation to complete......... TIMEOUT !            

BOOTP broadcast 1                                                              

BOOTP broadcast 2                                                              

BOOTP broadcast 3                                                              

BOOTP broadcast 4                                                              

BOOTP broadcast 5                                                              

BOOTP broadcast 6                                                              

BOOTP broadcast 7                                                              

BOOTP broadcast 8                                                              

BOOTP broadcast 9                                                              

BOOTP broadcast 10                                                             

BOOTP broadcast 11                                                             

BOOTP broadcast 12                                                             

BOOTP broadcast 13                                                             

BOOTP broadcast 14                                                             

BOOTP broadcast 15                                                             

BOOTP broadcast 16                                                             

BOOTP broadcast 17                                                             

                                                                               

Retry time exceeded; starting again  ....

What's does " ** Unrecognized filesystem type **                                             

** Unrecognized filesystem type **                                             

Booting from net ...                                                           

FEC Waiting for PHY auto negotiation to complete......... TIMEOUT ! " mean??? please help me

0 Kudos
6 Replies

1,317 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ragu

please look U-boot error: ** Unrecognized filesystem type **

environment & bootcmd may be saved by previous versions so

one can run clearenv && reset or env default -a && saveenv && boot

as explained at  http://boundarydevices.com/u-boot-on-i-mx6/

Best regards

igor

0 Kudos

1,317 Views
raguram
Contributor I

Hello Igor,

     Thanks for the reply... basically Im very new to linux and new to imx processors.... I need to boot, add a kernel and a rootfs to imx6q sabresd board... I have referred https://community.freescale.com/docs/DOC-95015 to boot and https://community.freescale.com/docs/DOC-95017 to compile a kernel.. Now I have a u-boot.imx, uImage and imx6q-sabresd.dtb ready. Bt when I follow the steps to prepare a SD card using the above mentioned links, I'm facing the issue(board boots with the prints as shown below)....


U-Boot 2015.04-rc3-00188-gb79dadf (Mar 12 2015 - 12:44:07)

CPU:   Freescale i.MX6Q rev1.2 at 792 MHz

CPU:   Temperature 33 C

Reset cause: POR

Board: MX6-SabreSD

I2C:   ready

DRAM:  1 GiB

PMIC:  PFUZE100 ID=0x10

MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2

*** Warning - bad CRC, using default environment

No panel detected: default to Hannstar-XGA                                     

Display: Hannstar-XGA (1024x768)                                               

In:    serial                                                                  

Out:   serial                                                                  

Err:   serial                                                                  

Net:   FEC [PRIME]                                                             

Hit any key to stop autoboot:  0                                               

switch to partitions #0, OK                                                    

mmc1 is current device                                                         

reading boot.scr                                                               

** Unable to read file boot.scr **      <<------  observe                                    

reading zImage                                                                 

** Unable to read file zImage **            <<------  observe                                     

Booting from net ...                                                           

FEC Waiting for PHY auto negotiation to complete......... TIMEOUT !            

BOOTP broadcast 1                                                              

BOOTP broadcast 2                                                              

BOOTP broadcast 3                                                              

BOOTP broadcast 4                                                              

BOOTP broadcast 5                                                              

BOOTP broadcast 6                                                              

BOOTP broadcast 7                                                              

BOOTP broadcast 8                                                              

BOOTP broadcast 9                                                              

BOOTP broadcast 10                                                             

BOOTP broadcast 11                                                             

BOOTP broadcast 12                                                             

BOOTP broadcast 13                                                             

BOOTP broadcast 14                                                             

BOOTP broadcast 15                                                             

BOOTP broadcast 16                                                             

BOOTP broadcast 17                                                             

                                                                               

Retry time exceeded; starting again

Please help me to prepare the SD card, so that I boot, add a kernel to my sabresd board...

     If you are providing me the commands step by step that would be of great help. Thank you in advance.


Regards,

Ragu

0 Kudos

1,317 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ragu

one can recheck file "README.imximage" how to flash SD card :

Setup a SD Card for booting

--------------------------------

The following example prepare a SD card with u-boot and a FAT partition

to be used to stored the kernel to be booted.

I will set the SD in the most compatible mode, setting it with

255 heads and 63 sectors, as suggested from several documentation and

howto on line (I took as reference the preparation of a SD Card for the

Beagleboard, running u-boot as bootloader).

You should start clearing the partitions table on the SD card. Because

the u-boot image must be stored at the offset 0x400, it must be assured

that there is no partition at that address. A new SD card is already

formatted with FAT filesystem and the partition starts from the first

cylinder, so we need to change it.

You can do all steps with fdisk. If the device for the SD card is

/dev/mmcblk0, the following commands make the job:

1. Start the fdisk utility (as superuser)

    fdisk /dev/mmcblk0

2. Clear the actual partition

Command (m for help): o

3. Print card info:

Command (m for help): p

Disk /dev/mmcblk0: 1981 MB, 1981284352 bytes

In my case, I have a 2 GB card. I need the size to set later the correct value

for the cylinders.

4. Go to expert mode:

Command (m for help): x

5. Set card geometry

Expert command (m for help): h

Number of heads (1-256, default 4): 255

Expert command (m for help): s

Number of sectors (1-63, default 16): 63

Warning: setting sector offset for DOS compatiblity

We have set 255 heads, 63 sector. We have to set the cylinder.

The value to be set can be calculated with:

    cilynder = <total size> / <heads> / <sectors> / <blocksize>

in this example,

    1981284352 / 255 / 63 / 512 = 239.x = 239

Expert command (m for help): c

Number of cylinders (1-1048576, default 60032): 239

6. Leave the expert mode

Expert command (m for help): r

7. Set up a partition

Now set a partition table to store the kernel or whatever you want. Of course,

you can set additional partitions to store rootfs, data, etc.

In my example I want to set a single partition. I must take care

to not overwrite the space where I will put u-boot.

Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-239, default 1): 3

Last cylinder, +cylinders or +size{K,M,G} (3-239, default 239): +100M

Command (m for help): p

Disk /dev/mmcblk0: 1967 MB, 1967128576 bytes

255 heads, 63 sectors/track, 239 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0xb712a870

    Device Boot     Start           End    Blocks     Id  System

/dev/mmcblk0p1             3        16    112455     83  Linux

I have set 100MB, leaving the first 2 sectors free. I will copy u-boot

there.

8. Write the partition table and exit.

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

9. Copy u-boot.imx on the SD card

I use dd:

dd if=u-boot.imx of=/dev/mmcblk0 bs=512 seek=2

This command copies the u-boot image at the address 0x400, as required

by the processor.

Now remove your card from the PC and go to the target. If evrything went right,

the u-boot prompt should come after power on.

----------------------------------

~igor

0 Kudos

1,317 Views
raguram
Contributor I

Hello Igor,

I'm sorry to say that it didn't work.... I have followed the steps as u mentioned bt still failed, please have a look..

fdisk /dev/sdb

Command (m for help): o

Building a new DOS disklabel with disk identifier 0xa7cdf568.

Changes will remain in memory only, until you decide to write them.

After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): p

Disk /dev/sdb: 3980 MB, 3980394496 bytes

123 heads, 62 sectors/track, 1019 cylinders, total 7774208 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0xa7cdf568

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): x

Expert command (m for help): h

Number of heads (1-256, default 123): 255

Expert command (m for help): s

Number of sectors (1-63, default 62): 63

Expert command (m for help): c

Number of cylinders (1-1048576, default 1019): 483

Expert command (m for help): r

Command (m for help): n

Partition type:

   p   primary (0 primary, 0 extended, 4 free)

   e   extended

Select (default p): p

Partition number (1-4, default 1): 1

First sector (2048-7774207, default 2048):       <<-------Observe (I'm getting "sectors" to enter bt in your example it has "cylinders" to enter )

Using default value 2048

Last sector, +sectors or +size{K,M,G} (2048-7774207, default 7774207):

Using default value 7774207

Command (m for help): p

Disk /dev/sdb: 3980 MB, 3980394496 bytes

255 heads, 63 sectors/track, 483 cylinders, total 7774208 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0xa7cdf568

   Device Boot      Start         End      Blocks   Id  System

/dev/sdb1            2048     7774207     3886080   83  Linux

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

cd u-boot/

dd if=u-boot.imx of=/dev/sdb bs=512 seek=2 conv=fsync

878+0 records in

878+0 records out

449536 bytes (450 kB) copied, 2.04837 s, 219 kB/s

After preparing the SD card in the above mentioned way, I still get the boot prints as :

"

U-Boot 2015.04-rc3-00188-gb79dadf (Mar 12 2015 - 12:44:07)

CPU:   Freescale i.MX6Q rev1.2 at 792 MHz

CPU:   Temperature 34 C

Reset cause: POR

Board: MX6-SabreSD

I2C:   ready

DRAM:  1 GiB

PMIC:  PFUZE100 ID=0x10

MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2

*** Warning - bad CRC, using default environment

No panel detected: default to Hannstar-XGA                                    

Display: Hannstar-XGA (1024x768)                                              

In:    serial                                                                 

Out:   serial                                                                 

Err:   serial                                                                 

Net:   FEC [PRIME]                                                            

Hit any key to stop autoboot:  0                                              

switch to partitions #0, OK                                                   

mmc1 is current device                                                        

reading boot.scr                                                              

** Unable to read file boot.scr **              <<-------Observe                              

reading zImage                                                                

** Unable to read file zImage **                <<-------Observe                             

Booting from net ...                                                          

FEC Waiting for PHY auto negotiation to complete......... TIMEOUT !           

BOOTP broadcast 1                                                             

BOOTP broadcast 2                                                             

BOOTP broadcast 3                                                             

BOOTP broadcast 4                                                             

BOOTP broadcast 5 .." !

What is the prob.. where am I going wrong?? Thanks in advance.

0 Kudos

1,317 Views
supriyac
Contributor I

Hello Ragu Ram,

How did you resolve this issue?

-Supriya

mmc1 is current device

reading boot.scr

** Unable to read file boot.scr **

reading zImage

** Unable to read file zImage **

Booting from net ...

FEC Waiting for PHY auto negotiation to complete......... TIMEOUT !

BOOTP broadcast 1

BOOTP broadcast 2

BOOTP broadcast 3

BOOTP broadcast 4

Abort

FEC Waiting for PHY auto negotiation to complete.user interrupt!

BOOTP broadcast 1

Abort

Bad Linux ARM zImage magic!

0 Kudos

1,317 Views
igorpadykov
NXP Employee
NXP Employee

I think you can also post this to meta-fsl-arm mailing list,

https://lists.yoctoproject.org/listinfo/meta-freescale

Best regards

igor

0 Kudos