AnsweredAssumed Answered

How to program SD card via mfgtools

Question asked by Pt A R on Oct 24, 2014
Latest reply on Oct 28, 2014 by igorpadykov

EVK                                : MCIMX28EVK

Linux Kernel version     : 2.6.35

Mfgtools                         : Mfgtools-Rel-1.6.2.048

 

I configured the firmware build profile

./ltib -selectype

(imx28) --->

(mfg firmware profile) --->

   

Toolchain (ARM, gcc-4.4.4, multilib, neon optimized)

command line : noinitrd console=ttyAM0,115200 root=/dev/mmcblk0p3 rw rootwait ip=none ssp1

 

Then I build linux bsp by using ./ltib command.I have extracted the boot stream source file.

./ltib -p boot_stream.spec -m prep

  Applied the following patch

0001-ENGR00243127-MX28-mfg-updater.sb-can-not-run-success.patch

Then I built bootstream

./ltib -p boot_stream.spec -f

 

The generated files - updater.sb, updater_ivt.sb, imx28_ivt_linux.sb, imx28_ivt_uboot.sb, imx28_linux.sb, imx28_uboot.sb, uImage,rootfs.tar.bz2 are copied to specific folder of mfgtools.

 

But I am getting the following error.

 

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

 

Freeing init memory: 128K

starting pid 1768, tty '': '/etc/rc.d/rcS'

Mounting /proc and /sys

mount: wrong fs type, bad option, bad superblock on tmpfs,

       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try

       dmesg | tail  or so

 

mknod: /dev/console: File exists

mknod: /dev/null: File exists

Starting the hotplug events dispatcher udevd

udevd[1777]: init_udevd_socket: error getting socket: Address family not supported by protocol

error initializing udevd socket

udevd[1777]: main: error initializing udevd socket

Synthesizing initial hotplug events

Setting the hostname to freescale

Mounting filesystems

mount: wrong fs type, bad option, bad superblock on shm,

       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try

       dmesg | tail  or so

 

mount: wrong fs type, bad option, bad superblock on rwfs,

       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try

       dmesg | tail  or so

 

mount: sysfs already mounted or /sys busy

mount: according to mtab, /sys is already mounted on /sys

mount: mount point /proc/bus/usb does not exist

starting pid 1804, tty '': '/etc/rc.d/rc_gpu.S'

can't run '/etc/rc.d/rc_gpu.S': No such file or directory

starting pid 1805, tty '': '/sbin/getty -L ttyAM0 115200 vt100'

process '/sbin/getty -L ttyAM0 115200 vt100' (pid 1805) exited. Scheduling for restart.

starting pid 1806, tty '': '/sbin/getty -L ttyAM0 115200 vt100'

Unable to handle kernel NULL pointer dereference at virtual address 00000008

pgd = c0004000

[00000008] *pgd=00000000

Internal error: Oops: 17 [#1]

last sysfs file: /sys/devices/virtual/vtconsole/vtcon1/uevent

CPU: 0    Not tainted  (2.6.35.3-670-g914558e #3)

PC is at fsg_main_thread+0xb40/0x2424

LR is at fsg_main_thread+0xb40/0x2424

pc : [<c023ce8c>]    lr : [<c023ce8c>]    psr: 60000013

sp : c7c65ef8  ip : c7c65ef8  fp : c7c65fc4

r10: c7c64000  r9 : 00c03965  r8 : c0396514

r7 : 00000000  r6 : c034e490  r5 : c0396504  r4 : c7c98600

r3 : 00000000  r2 : 00000001  r1 : c7c65f7c  r0 : c0396514

Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel

Control: 0005317f  Table: 46fc8000  DAC: 00000017

Process file-storage-ga (pid: 164, stack limit = 0xc7c64270)

Stack: (0xc7c65ef8 to 0xc7c66000)

5ee0:                                                       c7c9865c c031e318

5f00: c7c259e0 00000026 00000000 000000c0 0000c039 c7c986ba c7c986bd c7c986bc

5f20: c7c986bb c7c65f88 00000000 00000000 c7c98604 00c03965 c7c986b0 c7c98640

5f40: c7c986b3 c7c986b4 c7c986b5 c7c986b2 c7c986b6 c7c986b9 000000c0 0000c039

5f60: c7c24000 c034475c c7c65f94 c7c986b8 c7c986b7 c7c9ec80 c033c318 00000000

5f80: c7c259e0 c0057a1c c7c65f88 c7c65f88 c02a141c c00405e4 00000000 c7c27ed0

5fa0: c7c65fcc c023c34c c7c98600 00000000 00000000 00000000 c7c65ff4 c7c65fc8

5fc0: c0057588 c023c35c 00000000 00000000 c7c65fd0 c7c65fd0 c7c27ed0 c0057504

5fe0: c0045c28 00000013 00000000 c7c65ff8 c0045c28 c0057514 00000000 00000000

Backtrace:

[<c023c34c>] (fsg_main_thread+0x0/0x2424) from [<c0057588>] (kthread+0x84/0x8c)

[<c0057504>] (kthread+0x0/0x8c) from [<c0045c28>] (do_exit+0x0/0x5f0)

r7:00000013 r6:c0045c28 r5:c0057504 r4:c7c27ed0

Code: e1530007 03a07000 e1a00008 eb019316 (e5d73008)

---[ end trace 7ab07b70219ce5af ]---

process '/sbin/getty -L ttyAM0 115200 vt100' (pid 1806) exited. Scheduling for restart.

starting pid 1807, tty '': '/sbin/getty -L ttyAM0 115200 vt100'

process '/sbin/getty -L ttyAM0 115200 vt100' (pid 1807) exited. Scheduling for restart.

starting pid 1808, tty '': '/sbin/getty -L ttyAM0 115200 vt100'

process '/sbin/getty -L ttyAM0 115200 vt100' (pid 1808) exited. Scheduling for restart.


How to solve this?


Outcomes