Hi Pavel,
I don't find the file ramdisk.gz in my SDK,only the two arago-base-tisdk-image-dm814x-evm.tar.gz & ezsdk-dm814x-evm-rootfs.tar.gz .
Would please tell me how to make ramdisk.gz?
Thank you.
B/R
Bob
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Bob,
Refer to the below links:
http://processors.wiki.ti.com/index.php/Creating_a_RAMDISK
http://processors.wiki.ti.com/index.php/Initrd
http://processors.wiki.ti.com/index.php/Modifying_contents_of_a_RAMDISK
http://e2e.ti.com/support/embedded/linux/f/354/t/84858.aspx
http://e2e.ti.com/support/embedded/linux/f/354/t/88720.aspx
Regards,
Pavel
Hi Pavel
I know how to make ramdisk.gz ,and use arago-base-tisdk-image-dm814x-evm.tar.gz to make ramdisk.gz,but it failed.Are there any parameters to set?
Please refer to the below log.
#0: TI81XX EVM
TCP cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
can: raw protocol (rev 20090105)
can: broadcast manager protocol (rev 20090105 t)
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
omap_voltage_late_init: Voltage driver support not added
Power Management for TI81XX.
Detected MACID=84:7e:40:ea:5f:6c
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file:
Modules linked in:
CPU: 0 Not tainted (2.6.37+ #357)
PC is at strcpy+0x10/0x28
LR is at ip_auto_config+0x3ac/0x78c
pc : [<c01d460c>] lr : [<c002a528>] psr: 40000013
sp : c9023f18 ip : c9023f28 fp : c9023f24
r10: 00000000 r9 : 00000000 r8 : c0039730
r7 : 00000000 r6 : c0544d64 r5 : c9023f2c r4 : c9023f3c
r3 : 00000000 r2 : 00000000 r1 : 00000000 r0 : c9023f2c
Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 10c5387d Table: 80004019 DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc90222e8)
Stack: (0xc9023f18 to 0xc9024000)
3f00: c9023fa4 c9023f28
3f20: c002a528 c01d4608 c9023f80 00000000 00000000 00000000 00000000 00000000
3f40: 00000000 00000000 00000000 c9023f58 c036e5f4 c01d4714 c0213244 c0544da0
3f60: 00000000 c04d2669 c00086b0 c006f21c c9023f94 c9023f80 c036e64c c036e5d8
3f80: c002cd38 c002cd3c c00086b0 c006f21c 00000013 c002a17c c9023fdc c9023fa8
3fa0: c003a42c c002a188 00000177 c00086b0 c006f21c 00000013 c002cd3c c00086b0
3fc0: c006f21c 00000013 00000000 00000000 c9023ff4 c9023fe0 c000874c c003a368
3fe0: 00000000 c00086b0 00000000 c9023ff8 c006f21c c00086bc afef9f6d 7ddffa74
Backtrace:
[<c01d45fc>] (strcpy+0x0/0x28) from [<c002a528>] (ip_auto_config+0x3ac/0x78c)
[<c002a17c>] (ip_auto_config+0x0/0x78c) from [<c003a42c>] (do_one_initcall+0xd0/0x1a4)
r8:c002a17c r7:00000013 r6:c006f21c r5:c00086b0 r4:c002cd3c
[<c003a35c>] (do_one_initcall+0x0/0x1a4) from [<c000874c>] (kernel_init+0x9c/0x154)
[<c00086b0>] (kernel_init+0x0/0x154) from [<c006f21c>] (do_exit+0x0/0x5e4)
r5:c00086b0 r4:00000000
Code: e1a0c00d e92dd800 e24cb004 e3a02000 (e7d13002)
---[ end trace 8718fc236af6a3ce ]---
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c0048bd0>] (dump_backtrace+0x0/0x110) from [<c03bfe38>] (dump_stack+0x18/0x1c)
r7:c9020000 r6:c9020000 r5:c01d460e r4:c0547a10
[<c03bfe20>] (dump_stack+0x0/0x1c) from [<c03bfe9c>] (panic+0x60/0x17c)
[<c03bfe3c>] (panic+0x0/0x17c) from [<c006f290>] (do_exit+0x74/0x5e4)
r3:c051c08c r2:c9023cd8 r1:c90200fc r0:c048b7e4
[<c006f21c>] (do_exit+0x0/0x5e4) from [<c0048f7c>] (die+0x29c/0x2d8)
[<c0048ce0>] (die+0x0/0x2d8) from [<c004b5a0>] (__do_kernel_fault+0x6c/0x8c)
[<c004b534>] (__do_kernel_fault+0x0/0x8c) from [<c03c3e94>] (do_page_fault+0x1f0/0x20c)
r9:00000005 r8:00000005 r7:00000000 r6:c9020000 r5:c9023ed0
r4:c05045a0
[<c03c3ca4>] (do_page_fault+0x0/0x20c) from [<c03c3ed4>] (do_translation_fault+0x24/0xa8)
[<c03c3eb0>] (do_translation_fault+0x0/0xa8) from [<c003a2a4>] (do_DataAbort+0x3c/0x9c)
r9:00000113 r8:00000000 r7:c9023ed0 r6:00000005 r5:c05045f0
r4:c05045a0
[<c003a268>] (do_DataAbort+0x0/0x9c) from [<c03c1e6c>] (__dabt_svc+0x4c/0x60)
Exception stack(0xc9023ed0 to 0xc9023f18)
3ec0: c9023f2c 00000000 00000000 00000000
3ee0: c9023f3c c9023f2c c0544d64 00000000 c0039730 00000000 00000000 c9023f24
3f00: c9023f28 c9023f18 c002a528 c01d460c 40000013 ffffffff
r8:c0039730 r7:00000000 r6:c0544d64 r5:c9023f04 r4:ffffffff
[<c01d45fc>] (strcpy+0x0/0x28) from [<c002a528>] (ip_auto_config+0x3ac/0x78c)
[<c002a17c>] (ip_auto_config+0x0/0x78c) from [<c003a42c>] (do_one_initcall+0xd0/0x1a4)
r8:c002a17c r7:00000013 r6:c006f21c r5:c00086b0 r4:c002cd3c
[<c003a35c>] (do_one_initcall+0x0/0x1a4) from [<c000874c>] (kernel_init+0x9c/0x154)
[<c00086b0>] (kernel_init+0x0/0x154) from [<c006f21c>] (do_exit+0x0/0x5e4)
r5:c00086b0 r4:00000000
B/R
Bob
Bob,
Are you following the flow described in the wikis?
http://processors.wiki.ti.com/index.php/TI81XX_PSP_User_Guide
TI8148_EVM# setenv autoload no
TI8148_EVM# dhcp
TI8148_EVM# setenv serverip <Server IP Address>
TI8148_EVM# tftp 0x81000000 uImage
TI8148_EVM# tftp 0x82000000 ramdisk.gz
TI8148_EVM# setenv bootargs 'mem=200M console=ttyO0,115200n8 root=/dev/ram0 initrd=0x82000000,40M ramdisk_size=32768 ip=dhcp'
TI8148_EVM# bootm 0x81000000
http://processors.wiki.ti.com/index.php/TI81XX_PSP_UBOOT_User_Guide#Environment_Settings_for_Ramdisk
TI8148_EVM# setenv bootargs 'console=ttyO0,115200n8 mem=256M earlyprintk root=/dev/ram rw initrd=0x82000000,32MB'
This is what I have at my side:
Kernel command line: console=ttyO0,115200n8 mem=256M earlyprintk root=/dev/ram rw initrd=0x82000000,32MB
Power Management for TI81XX.
Detected MACID=90:d7:eb:d5:13:96
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing init memory: 208K
INIT: version 2.86 booting
Error opening /dev/fb0: No such file or directory
Please wait: booting...
Starting udev
WARNING: -e needs -E or -F
udevd (86): /proc/86/oom_adj is deprecated, please use /proc/86/oom_score_adj instead.
Remounting root file system...
Caching udev devnodes
ALSA: Restoring mixer settings...
No state is present for card EVM
Found hardware: "" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card EVM
Configuring e2fsprogs.
update-alternatives: Error: cannot register alternative chattr to /usr/bin/chattr since it is already registered to /bin/chattr
update-alternatives: Linking //sbin/uuidd to uuidd.util-linux-ng
Configuring update-modules.
Configuring dbus.
Adding system startup for /etc/init.d/dbus-1.
/etc/modutils/ipv6: line 1: ipv6: not found
Error while executing /etc/modutils/ipv6, aborting
Configuring network interfaces...
CPSW phy found : id is : 0x4dd074
CPSW phy found : id is : 0x4dd074
udhcpc (v1.13.2) started
Sending discover...
PHY: 0:01 - Link is Up - 0/Half
PHY: 0:01 - Link is Down
PHY: 0:00 - Link is Up - 100/Full
Sending discover...
Sending select for 172.20.1.30...
Lease of 172.20.1.30 obtained, lease time 361009
adding dns 172.20.0.1
adding dns 172.18.0.1
done.
Setting up IP spoofing protection: rp_filter.
Mon Dec 31 10:37:00 UTC 2012
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org dm814x-evm ttyO0
Arago 2011.09 dm814x-evm ttyO0
dm814x-evm login: root
root@dm814x-evm:~#
I am attaching my ramdisk.gz (which is filled with the arago fs):
6087.ramdisk.gz
Regards,
PavelBob,
I tried with ip=dhcp in my bootargs, and it works fine:
TI8148_EVM# setenv bootargs 'console=ttyO0,115200n8 mem=256M earlyprintk
root=/dev/ram rw initrd=0x82000000,32MB ip=dhcp'
Kernel command line: console=ttyO0,115200n8 mem=256M earlyprintk root=/dev/ram rw initrd=0x82000000,32MB ip=dhcp
Power Management for TI81XX.
Detected MACID=90:d7:eb:d5:13:96
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
CPSW phy found : id is : 0x4dd074
CPSW phy found : id is : 0x4dd074
Sending DHCP requests .
PHY: 0:01 - Link is Up - 0/Half
PHY: 0:01 - Link is Down
PHY: 0:00 - Link is Up - 100/Full
., OK
IP-Config: Got DHCP answer from 0.0.0.0, my address is 172.20.0.103
IP-Config: Complete:
device=eth0, addr=172.20.0.103, mask=255.255.0.0, gw=172.20.0.1,
host=172.20.0.103, domain=int.mm-sol.com, nis-domain=(none),
bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing init memory: 208K
INIT: version 2.86 booting
Error opening /dev/fb0: No such file or directory
Please wait: booting...
Starting udev
WARNING: -e needs -E or -F
udevd (86): /proc/86/oom_adj is deprecated, please use /proc/86/oom_score_adj instead.
Remounting root file system...
Caching udev devnodes
ALSA: Restoring mixer settings...
No state is present for card EVM
Found hardware: "" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card EVM
Configuring e2fsprogs.
update-alternatives: Error: cannot register alternative chattr to /usr/bin/chattr since it is already registered to /bin/chattr
update-alternatives: Linking //sbin/uuidd to uuidd.util-linux-ng
Configuring update-modules.
Configuring dbus.
Adding system startup for /etc/init.d/dbus-1.
/etc/modutils/ipv6: line 1: ipv6: not found
Error while executing /etc/modutils/ipv6, aborting
Configuring network interfaces... udhcpc (v1.13.2) started
Sending discover...
Sending select for 172.20.1.30...
Lease of 172.20.1.30 obtained, lease time 1800
adding dns 172.20.0.1
adding dns 172.18.0.1
done.
Setting up IP spoofing protection: rp_filter.
Mon Dec 31 10:37:00 UTC 2012
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org dm814x-evm ttyO0
Arago 2011.09 dm814x-evm ttyO0
dm814x-evm login: root
root@dm814x-evm:~#
Regards,
Pavel
Bob,
I also tried with the below bootargs (also with ip=dhcp) and it works fine on my side:
TI8148_EVM#setenv bootargs 'mem=200M console=ttyO0,115200n8 root=/dev/ram0 initrd=0x82000000,32MB ramdisk_size=32768 ip=dhcp'
Kernel command line: mem=200M console=ttyO0,115200n8 root=/dev/ram0 initrd=0x82000000,32MB ramdisk_size=32768 ip=dhcp
Power Management for TI81XX.
Detected MACID=90:d7:eb:d5:13:96
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
CPSW phy found : id is : 0x4dd074
CPSW phy found : id is : 0x4dd074
Sending DHCP requests .
PHY: 0:01 - Link is Up - 0/Half
PHY: 0:01 - Link is Down
PHY: 0:00 - Link is Up - 100/Full
., OK
IP-Config: Got DHCP answer from 0.0.0.0, my address is 172.20.0.103
IP-Config: Complete:
device=eth0, addr=172.20.0.103, mask=255.255.0.0, gw=172.20.0.1,
host=172.20.0.103, domain=int.mm-sol.com, nis-domain=(none),
bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing init memory: 208K
INIT: version 2.86 booting
Error opening /dev/fb0: No such file or directory
Please wait: booting...
Starting udev
WARNING: -e needs -E or -F
udevd (86): /proc/86/oom_adj is deprecated, please use /proc/86/oom_score_adj instead.
Remounting root file system...
Caching udev devnodes
ALSA: Restoring mixer settings...
No state is present for card EVM
Found hardware: "" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card EVM
Configuring e2fsprogs.
update-alternatives: Error: cannot register alternative chattr to /usr/bin/chattr since it is already registered to /bin/chattr
update-alternatives: Linking //sbin/uuidd to uuidd.util-linux-ng
Configuring update-modules.
Configuring dbus.
Adding system startup for /etc/init.d/dbus-1.
/etc/modutils/ipv6: line 1: ipv6: not found
Error while executing /etc/modutils/ipv6, aborting
Configuring network interfaces... udhcpc (v1.13.2) started
Sending discover...
Sending select for 172.20.1.30...
Lease of 172.20.1.30 obtained, lease time 1800
adding dns 172.20.0.1
adding dns 172.18.0.1
done.
Setting up IP spoofing protection: rp_filter.
Mon Dec 31 10:37:00 UTC 2012
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org dm814x-evm ttyO0
Arago 2011.09 dm814x-evm ttyO0
dm814x-evm login: root
root@dm814x-evm:~#
Bob,
I also tried with the below bootargs (also with ip=dhcp) and it works fine on my side:
TI8148_EVM#setenv bootargs 'mem=200M console=ttyO0,115200n8 root=/dev/ram0 initrd=0x82000000,40M ramdisk_size=32768 ip=dhcp'
Kernel command line: mem=200M console=ttyO0,115200n8 root=/dev/ram0 initrd=0x82000000,40M ramdisk_size=32768 ip=dhcp
Power Management for TI81XX.
Detected MACID=90:d7:eb:d5:13:96
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
CPSW phy found : id is : 0x4dd074
CPSW phy found : id is : 0x4dd074
Sending DHCP requests .
PHY: 0:01 - Link is Up - 0/Half
PHY: 0:01 - Link is Down
PHY: 0:00 - Link is Up - 100/Full
., OK
IP-Config: Got DHCP answer from 0.0.0.0, my address is 172.20.0.103
IP-Config: Complete:
device=eth0, addr=172.20.0.103, mask=255.255.0.0, gw=172.20.0.1,
host=172.20.0.103, domain=int.mm-sol.com, nis-domain=(none),
bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing init memory: 208K
INIT: version 2.86 booting
Error opening /dev/fb0: No such file or directory
Please wait: booting...
Starting udev
WARNING: -e needs -E or -F
udevd (86): /proc/86/oom_adj is deprecated, please use /proc/86/oom_score_adj instead.
Remounting root file system...
Caching udev devnodes
ALSA: Restoring mixer settings...
No state is present for card EVM
Found hardware: "" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card EVM
Configuring e2fsprogs.
update-alternatives: Error: cannot register alternative chattr to /usr/bin/chattr since it is already registered to /bin/chattr
update-alternatives: Linking //sbin/uuidd to uuidd.util-linux-ng
Configuring update-modules.
Configuring dbus.
Adding system startup for /etc/init.d/dbus-1.
/etc/modutils/ipv6: line 1: ipv6: not found
Error while executing /etc/modutils/ipv6, aborting
Configuring network interfaces... udhcpc (v1.13.2) started
Sending discover...
Sending select for 172.20.1.30...
Lease of 172.20.1.30 obtained, lease time 1800
adding dns 172.20.0.1
adding dns 172.18.0.1
done.
Setting up IP spoofing protection: rp_filter.
Mon Dec 31 10:37:00 UTC 2012
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org dm814x-evm ttyO0
Arago 2011.09 dm814x-evm ttyO0
dm814x-evm login: root
root@dm814x-evm:~#