download fail under my own updater

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

download fail under my own updater

1,142 Views
LiuHui
Contributor I

I build my own updater for imx28 based on Linux version 2.6.35.3 and always cannot download successfully.

By the way, the rootfs.tar.bz2, linux.sb, and ucl.xml I used is released by freescale.

Is there anyone here can give me some suggestion?

Below is the debug message out put from console when download fail.

 

starting pid 905, tty '': '/etc/rc.d/rcS' Mounting /proc and /sys Setting the hostname to freescale Mounting filesystems mount: mounting shm on /dev/shm failed: No such file or directory mount: mounting rwfs on /mnt/rwfs failed: Invalid argument mount: mounting usbfs on /proc/bus/usb failed: No such file or directory Starting inetd:

starting pid 933, tty '': '/sbin/getty -L ttyAM0 115200 vt100' g_file_storage gadget: high speed config #1 utp_exec,mknod block,mmcblk0,/dev/mmcblk0,block

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

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

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

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

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

starting pid 936, tty '': '/sbin/getty -L ttyAM0 115200 vt100' Unable to handle kernel NULL pointer dereference at virtual address 00000009 pgd = c0004000 [00000009] *pgd=00000000 Internal error: Oops: 17 [#1] last sysfs file: CPU: 0    Not tainted  (2.6.35.3-571-gcca29a0-svn6 #6) PC is at do_scsi_command+0x5ec/0x1b38 LR is at do_scsi_command+0x5ec/0x1b38 pc : [<c0227888>]    lr : [<c0227888>]    psr: 60000013 sp : c7245f10  ip : c7245f10  fp : c7245f84 r10: c7252380  r9 : c0368ac0  r8 : c0368ad4 r7 : c0368ae8  r6 : 00000000  r5 : c0368ac4  r4 : c7c20e00 r3 : 00000000  r2 : 00000001  r1 : c7245f3c  r0 : c0368ad4 Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel Control: 0005317f  Table: 472ac000  DAC: 00000017 Process file-storage-ga (pid: 878, stack limit = 0xc7244270) Stack: (0xc7245f10 to 0xc7246000) 5f00:                                     c003f430 c0076dc8 c0310008 c7245f3c 5f20: c0368ae8 000000c0 0000c036 00c0368a 000000c0 c003f3fc 00000000 00000000 5f40: c7cbe000 c0056834 c7245f48 c7245f48 0000001f c7c20e40 c7245f84 c7c20e00 5f60: c7c20e78 c0321624 c7240000 c7244000 0000001f c7c20e40 c7245fc4 c7245f88 5f80: c0229108 c02272ac c7c20e7c c7245f98 c027db8c c7c20eb0 00000000 c7c27ed0 5fa0: c7245fcc c0228dd4 c7c20e00 00000000 00000000 00000000 c7245ff4 c7245fc8 5fc0: c00563a0 c0228de4 00000000 00000000 c7245fd0 c7245fd0 c7c27ed0 c005631c 5fe0: c0044a40 00000013 00000000 c7245ff8 c0044a40 c005632c b3a27aa3 5a22abbf Backtrace: [<c022729c>] (do_scsi_command+0x0/0x1b38) from [<c0229108>] (fsg_main_thread+0x334/0x6c8) [<c0228dd4>] (fsg_main_thread+0x0/0x6c8) from [<c00563a0>] (kthread+0x84/0x8c) [<c005631c>] (kthread+0x0/0x8c) from [<c0044a40>] (do_exit+0x0/0x5f0)  r7:00000013 r6:c0044a40 r5:c005631c r4:c7c27ed0 Code: e1530006 03a06000 e1a00008 eb015a73 (e5d62009) ---[ end trace f8f311319f5524e3 ]---

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

0 Kudos
4 Replies

734 Views
LiuHui
Contributor I

Hi,

I never have this kind of problem.

I use ubuntu-10.04 to build the kernel. Config the packages to Minimum bootable root filesystem and use mfgtools to update.

 

You can change the the file in "rootfs/etc/rc.d/init.d/rc.conf" to let your  system run udev script(

http://ltib.org/documentation-LtibFaq  search "How to add a daemon to init" ). But I am not sure this will help.

 

 

Best Regards

0 Kudos

734 Views
Matteo
Contributor II

Hi,

first thanks for your reply. I have already set LTIB options how you explained however I'll try again to install the BSP in new directory and configure LTIB. 

Now, I try to understand because at the boot of the kernel my system don't load udev script, that create shm directory ecc..(see below)

init started: BusyBox v1.15.0 ()

starting pid 1112, tty '': '/etc/rc.d/rcS'
Mounting /proc and /sys 
Setting the hostname to freescale
Mounting filesystems
mount: mounting shm on /dev/shm failed: No such file or directory

instead the linux kernel loaded in the sd card that freescale provide with i.MX28 EVK board execute udev script that create shm directory and start hotplug events (see below):

init started: BusyBox v1.15.0 ()

starting pid 1063, tty '': '/etc/rc.d/rcS'
Mounting /proc and /sys 
Starting the hotplug events dispatcher udevd
Synthesizing initial hotplug events
Setting the hostname to freescale
Mounting filesystems

Why my kernel don't execute udev script?

Have you any idea?

Thanks!

0 Kudos

734 Views
LiuHui
Contributor I

Here are the steps from Freescale Support to build the updater_ivt.sb.

1. install the BSP to a new directory 2. Change to the new directory and type this command to configure the build profile "./ltib -m selectype" Choose "imx_28" as platform type and "mfg firmware profile" as packages profile 3. Type "./ltib" to build updater.sb and updater_ivb.sb 4. Test the updater_ivb.sb using the default MX28 linux "SD(without uboot)" profile.

Step 1 is important to eliminate any dependence issues from existing object files.



Matteo Fabiani said:

Hi,

have you solved the problem? 

0 Kudos

734 Views
Matteo
Contributor II

Hi,

have you solved the problem? 

0 Kudos