TQM 860L, 64MB RAM, ELDK4.1, TQM860L, Kernel 2.6.19
Hi everyone,
need from the experts on the list again.
The CPU freezes after the ramdisk gets loaded!
Trying get a working kernel: boot from flash and use ramdisk from flash with the following configuration:
TQM 860L, 64MB RAM (not 16MB as the standard module)
ELDK4.1
Kernel 2.6.19 from ELDK
u-boot 1.1.6
u-boot environment:
=> printenv
bootcmd=run flash_self
bootdelay=5
baudrate=115200
loads_echo=1
preboot=echo;echo TQ-Module Bootloader for ABTS;echo Type "run flash_nfs" to mount root filesystem over NFS;echo
netdev=eth0
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:
${netmask}:${hostname}:${netdev}:off panic=1
flash_nfs=run nfsargs addip;bootm ${kernel_addr}
flash_self=run ramargs addip;bootm ${kernel_addr} ${ramdisk_addr} net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm rootpath=/opt/eldk/ppc_8xx
kernel_addr=40040000
serial#=TQM860LDDBA3-P80.210 11090659
ethaddr=00:D0:93:04:DC:1B
eth1addr=00:D0:93:04:DC:1B
ethprime=FEC ETHERNET
bootfile=/TQM860L/uImage
fileaddr=100000
ramdisk_addr=40200000
ramargs=setenv bootargs ramdisk_size=6144 root=/dev/ram rw initrd_high=30000000
stdin=serial
stdout=serial
stderr=serial
ethact=FEC ETHERNET
bootcount=39
Environment size: 928/16379 bytes
-----
Output after u-boot boot:
=> boot
## Booting image at 40040000 ...
Image Name: Linux-2.6.19.2 Created: 2007-03-22 3:22:04 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 738664 Bytes = 721.4 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at 40200000 ...
Image Name: Simple Embedded Linux Framework Created: 2007-01-20 23:09:28 UTC Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size: 1589504 Bytes = 1.5 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Ramdisk to 03e24000, end 03fa8100 ... OK
<<< CPU / module freezes after that >>>
kernel .config:CONFIG_MMU=yCONFIG_GENERIC_HARDIRQS=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_HWEIGHT=y CONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_PPC=yCONFIG_PPC32=yCONFIG_GENERIC_NVRAM=y CONFIG_GENERIC_FIND_NEXT_BIT=y CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_EXPERIMENTAL=yCONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_LOCALVERSION=""CONFIG_LOCALVERSION_AUTO=yCONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_INITRAMFS_SOURCE="" CONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_SYSCTL=yCONFIG_EMBEDDED=yCONFIG_SYSCTL_SYSCALL=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_SHMEM=yCONFIG_SLAB=yCONFIG_VM_EVENT_COUNTERS=yCONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULES=yCONFIG_MODULE_UNLOAD=yCONFIG_KMOD=yCONFIG_BLOCK=yCONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=yCONFIG_IOSCHED_DEADLINE=yCONFIG_IOSCHED_CFQ=yCONFIG_DEFAULT_CFQ=yCONFIG_DEFAULT_IOSCHED="cfq"
CONFIG_8xx=yCONFIG_MATH_EMULATION=yCONFIG_EMBEDDEDBOOT=yCONFIG_NOT_COHERENT_CACHE=yCONFIG_TQM860L=y
CONFIG_TQM8xxL=yCONFIG_CPM1=yCONFIG_ARCH_POPULATES_NODE_MAP=yCONFIG_HZ_250=yCONFIG_HZ=250CONFIG_PREEMPT_NONE=yCONFIG_SELECT_MEMORY_MODEL=y CONFIG_FLATMEM_MANUAL=yCONFIG_FLATMEM=yCONFIG_FLAT_NODE_MEM_MAP=y CONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_BINFMT_ELF=yCONFIG_SECCOMP=yCONFIG_ISA_DMA_API=y CONFIG_HIGHMEM_START=0xfe000000 CONFIG_LOWMEM_SIZE=0x30000000 CONFIG_KERNEL_START=0xc0000000 CONFIG_TASK_SIZE=0x80000000 CONFIG_CONSISTENT_START=0xff100000 CONFIG_CONSISTENT_SIZE=0x00200000 CONFIG_BOOT_LOAD=0x00400000CONFIG_NET=yCONFIG_PACKET=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_IP_FIB_HASH=yCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=yCONFIG_IP_PNP_BOOTP=yCONFIG_TCP_CONG_CUBIC=y CONFIG_DEFAULT_TCP_CONG="cubic" CONFIG_STANDALONE=y CONFIG_PREVENT_FIRMWARE_BUILD=yCONFIG_MTD=yCONFIG_MTD_PARTITIONS=yCONFIG_MTD_CMDLINE_PARTS=yCONFIG_MTD_CHAR=yCONFIG_MTD_BLOCK=yCONFIG_MTD_CFI=yCONFIG_MTD_GEN_PROBE=y CONFIG_MTD_MAP_BANK_WIDTH_1=y CONFIG_MTD_MAP_BANK_WIDTH_2=y CONFIG_MTD_MAP_BANK_WIDTH_4=yCONFIG_MTD_CFI_I1=yCONFIG_MTD_CFI_I2=yCONFIG_MTD_CFI_AMDSTD=yCONFIG_MTD_CFI_UTIL=yCONFIG_MTD_ROM=yCONFIG_MTD_PHYSMAP=y CONFIG_MTD_PHYSMAP_START=0x8000000 CONFIG_MTD_PHYSMAP_LEN=0 CONFIG_MTD_PHYSMAP_BANKWIDTH=2 CONFIG_MTD_TQM8XXL=yCONFIG_BLK_DEV_LOOP=yCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=6144 CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 CONFIG_BLK_DEV_INITRD=yCONFIG_NETDEVICES=yCONFIG_NET_ETHERNET=yCONFIG_USE_MDIO=yCONFIG_INPUT=yCONFIG_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=yCONFIG_SERIO_LIBPS2=yCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_SERIAL_CPM=yCONFIG_SERIAL_CPM_CONSOLE=y CONFIG_SERIAL_CPM_SMC1=yCONFIG_UNIX98_PTYS=yCONFIG_GEN_RTC=yCONFIG_HWMON=yCONFIG_EXT2_FS=yCONFIG_INOTIFY=yCONFIG_INOTIFY_USER=yCONFIG_DNOTIFY=yCONFIG_PROC_FS=yCONFIG_PROC_SYSCTL=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_RAMFS=yCONFIG_PARTITION_ADVANCED=yCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_SCC_ENET=yCONFIG_SCC2_ENET=yCONFIG_FEC_ENET=yCONFIG_FEC_LXT971=yCONFIG_ENET_BIG_BUFFERS=y
CONFIG_8xx_COPYBACK=yCONFIG_I2C_SPI_UCODE_PATCH=yCONFIG_UCODE_PATCH=yCONFIG_PLIST=yCONFIG_ENABLE_MUST_CHECK=yCONFIG_LOG_BUF_SHIFT=14
---
Sorry for the long post and thanks in advance
Tom
Signature · 2 lines
Thomas Maenner E-Mail: mailto:[email protected]
Quoted 3 lines · In message <[email protected]> you wrote:
need from the experts on the list again.
The CPU freezes after the ramdisk gets loaded!
Does it really freeze? I mean, did you verify this witha BDM debugger, or do you just see no further output on the console? Note that these are two fundamentally different things...
Quoted 23 lines
u-boot environment:
=> printenv
bootcmd=runflash_self
bootdelay=5
baudrate=115200
loads_echo=1
preboot=echo;echo TQ-Module Bootloader for ABTS;echo Type "runflash_nfs" to mount root filesystem over NFS;echo
netdev=eth0
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:
${netmask}:${hostname}:${netdev}:off panic=1
flash_nfs=run nfsargs addip;bootm ${kernel_addr}
flash_self=run ramargs addip;bootm ${kernel_addr} ${ramdisk_addr} net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm rootpath=/opt/eldk/ppc_8xx
kernel_addr=40040000
serial#=TQM860LDDBA3-P80.210 11090659
ethaddr=00:D0:93:04:DC:1B
eth1addr=00:D0:93:04:DC:1B
ethprime=FEC ETHERNET
bootfile=/TQM860L/uImage
fileaddr=100000
Quoted 8 lines
ramdisk_addr=40200000
ramargs=setenv bootargs ramdisk_size=6144 root=/dev/ram rw initrd_high=30000000
stdin=serial
stdout=serial
stderr=serial
ethact=FEC ETHERNET
bootcount=39
I don't see you passing any console=ttyCPM0 argument here?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Not one hundred percent efficient, of course ... but nothing ever is. -- Kirk, "Metamorphosis", stardate 3219.8
Thanks Wolfgang for your reply,
You're right, I can not really tell, whether it's frozen since I don't have a BDM...
I'll try the console command you suggested, which I haven't had to use before (U-boot 1.1.2 and older, Kernel 2.4, older ELDK)
Thanks
Tom
Quoted 54 lines · Wolfgang Denk
Quoted 3 lines · In message <[email protected]> you wrote:
need from the experts on the list again.
The CPU freezes after the ramdisk gets loaded!Does it really freeze? I mean, did you verify this witha BDM debugger, or do you just see no further output on the console? Note that these are two fundamentally different things...
Quoted 23 lines
u-boot environment:
=> printenv
bootcmd=runflash_self
bootdelay=5
baudrate=115200
loads_echo=1
preboot=echo;echo TQ-Module Bootloader for ABTS;echo Type "runflash_nfs" to mount root filesystem over NFS;echo
netdev=eth0
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:
${netmask}:${hostname}:${netdev}:off panic=1
flash_nfs=run nfsargs addip;bootm ${kernel_addr}
flash_self=run ramargs addip;bootm ${kernel_addr} ${ramdisk_addr} net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm rootpath=/opt/eldk/ppc_8xx
kernel_addr=40040000
serial#=TQM860LDDBA3-P80.210 11090659
ethaddr=00:D0:93:04:DC:1B
eth1addr=00:D0:93:04:DC:1B
ethprime=FEC ETHERNET
bootfile=/TQM860L/uImage
fileaddr=100000Quoted 8 lines
ramdisk_addr=40200000
ramargs=setenv bootargs ramdisk_size=6144 root=/dev/ram rw initrd_high=30000000
stdin=serial
stdout=serial
stderr=serial
ethact=FEC ETHERNET
bootcount=39I don't see you passing any console=ttyCPM0 argument here?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Not one hundred percent efficient, of course ... but nothing ever is.-- Kirk, "Metamorphosis", stardate 3219.8
Signature · 9 lines
Thomas Maenner Engineering Project Manager AEHR Test Systems 400 Kato Terrace Fremont, CA 94539 Phone: +1-510-623-9400x323 Cell: +1-925-389-6653 Fax: +1-510-623-9450 E-Mail: mailto:[email protected]
Tried out the following u-boot "setting":
setenv ramargs setenv bootargs ramdisk_size=3D6144 root=3D/dev/ram console= =3DttyCPM0=20
rw
No change; still no output in the console
Note that my module has 64MB, rather that 16; I thought it doesn't matter, = or?
Thanks again for your help
Tom
Quoted 7 lines · Thomas Maenner
Thanks Wolfgang for your reply,
You're right, I can not really tell, whether it's frozen since I don't have a BDM...
I'll try the console command you suggested, which I haven't had to use before (U-boot 1.1.2 and older, Kernel 2.4, older ELDK)
Quoted 57 lines
Thanks
TomQuoted 53 lines · Wolfgang Denk
Quoted 2 lines · In message <[email protected]> you wrote:
need from the experts on the list again.
The CPU freezes after the ramdisk gets loaded!Does it really freeze? I mean, did you verify this witha BDM debugger, or do you just see no further output on the console? Note that these are two fundamentally different things...
Quoted 24 lines
u-boot environment:
=3D> printenv
bootcmd=3Drunflash_self
bootdelay=3D5
baudrate=3D115200
loads_echo=3D1
preboot=3Decho;echo TQ-Module Bootloader for ABTS;echo Type "runflash_nfs" to mount root filesystem over NFS;echo netdev=3Deth0
nfsargs=3Dsetenv bootargs root=3D/dev/nfs rw nfsroot=3D${serverip}:${rootpath} addip=3Dsetenv bootargs ${bootargs} ip=3D${ipaddr}:${serverip}:${gatewayip}:
${netmask}:${hostname}:${netdev}:off panic=3D1 flash_nfs=3Drun nfsargs addip;bootm ${kernel_addr} flash_self=3Drun ramargs addip;bootm ${kernel_addr} ${ramdisk_addr} net_nfs=3Dtftp 200000 ${bootfile};run nfsargs addip;bootm rootpath=3D/opt/eldk/ppc_8xx
kernel_addr=3D40040000
serial#=3DTQM860LDDBA3-P80.210 11090659 ethaddr=3D00:D0:93:04:DC:1B
eth1addr=3D00:D0:93:04:DC:1B
ethprime=3DFEC ETHERNET
bootfile=3D/TQM860L/uImage
fileaddr=3D100000Quoted 8 lines
ramdisk_addr=3D40200000
ramargs=3Dsetenv bootargs ramdisk_size=3D6144 root=3D/dev/ram rw initrd_high=3D30000000
stdin=3Dserial
stdout=3Dserial
stderr=3Dserial
ethact=3DFEC ETHERNET
bootcount=3D39I don't see you passing any console=3DttyCPM0 argument here?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Not one hundred percent efficient, of course ... but nothing ever is.-- Kirk, "Metamorphosis", stardate 3219.8
=2D-=20
Thomas Maenner
Engineering Project Manager
AEHR Test Systems
400 Kato Terrace
=46remont, CA 94539
Phone: =A0+1-510-623-9400x323
Cell: =A0 +1-925-389-6653
=46ax: =A0 =A0+1-510-623-9450
E-Mail: mailto:[email protected]
Quoted 4 lines · In message <[email protected]> you wrote:
Tried out the following u-boot "setting":
setenv ramargs setenv bootargs ramdisk_size=6144 root=/dev/ram console=ttyCPM0 rwNo change; still no output in the console
Then buy a debugger and dig into it...
Quoted 1 line
Note that my module has 64MB, rather that 16; I thought it doesn't matter, or?
It doesn't.
You are aware that TQM8xxL is not yet supported in the context of the 2.6 Linux kernel, aren't you? [And we will not support it in the ARCH=ppc context any more.]
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] We are all agreed that your theory is crazy. The question which divides us is whether it is crazy enough to have a chance of being correct. My own feeling is that it is not crazy enough. - Niels Bohr
Quoted 3 lines
You are aware that TQM8xxL is not yet supported in the context of the 2.6 Linux kernel, aren't you? [And we will not support it in the ARCH=ppc context any more.]
hello,
does anybody know if TQ Systems is going to support the recent 2.6 kernels ?
br
Ralph Hempel
Dear Ralph,
Quoted 6 lines · in message <[email protected]> you wrote:
Quoted 3 lines
You are aware that TQM8xxL is not yet supported in the context of the 2.6 Linux kernel, aren't you? [And we will not support it in the ARCH=ppc context any more.]
does anybody know if TQ Systems is going to support the recent 2.6 kernels ?
You probably should direct this question to TQ (btw: you should ask TQ Components - for example Robert Nerbl or Heinz Hornung).
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] SW engineering is a race between programmers trying to make better idiot-proof programs and the universe producing greater idiots.
Apparently I was not aware, that the TQ8xx are not supported by 2.6... Will try the linuxppc_2_4_devel version from your cvs repository.
Thanks
Tom
Quoted 21 lines · Wolfgang Denk
Quoted 5 lines · In message <[email protected]> you wrote:
Tried out the following u-boot "setting":
setenv ramargs setenv bootargs ramdisk_size=6144 root=/dev/ram console=ttyCPM0 rwNo change; still no output in the console
Then buy a debugger and dig into it...
Quoted 2 lines
Note that my module has 64MB, rather that 16; I thought it doesn't matter, or?
It doesn't.
You are aware that TQM8xxL is not yet supported in the context of the 2.6 Linux kernel, aren't you? [And we will not support it in the ARCH=ppc context any more.]
Best regards,
Wolfgang Denk
Signature · 2 lines
Thomas Maenner E-Mail: mailto:[email protected]
Dear Wolfgang,
please enlighten us (or maybe just me) on why the TQ8xx are not supported by 2.6, since the ppc sources are in the 2.6.19 kernel source tree, that comes with ELDK 4.1
Thanks much for your support
Tom
Quoted 16 lines · Wolfgang Denk
Dear Ralph,
Quoted 6 lines · in message <[email protected]> you wrote:
Quoted 3 lines
You are aware that TQM8xxL is not yet supported in the context of the 2.6 Linux kernel, aren't you? [And we will not support it in the ARCH=ppc context any more.]
does anybody know if TQ Systems is going to support the recent 2.6 kernels ?
You probably should direct this question to TQ (btw: you should ask TQ Components - for example Robert Nerbl or Heinz Hornung).
Best regards,
Wolfgang Denk
Signature · 2 lines
Thomas Maenner E-Mail: mailto:[email protected]
Quoted 4 lines · In message <[email protected]> you wrote:
please enlighten us (or maybe just me) on why the TQ8xx are not supported by 2.6, since the ppc sources are in the 2.6.19 kernel source tree, that comes with ELDK 4.1
The working 2.4 code was copied to 2.5 and later to 2.6 without ever being actively maintained. In early 2.6 kernels, support for 8xx was more or less broken. Lately, it has become clear that ARCH=ppc is a dead end and things should move to ARCH=powerpc. That's why I said we (DENX) will not support the 8xx in the ARCH=ppc context.
Last but not least I would like to remind you that 2.6 is bigger and slower than 2.4, which is especially visible on low end systems like the 8xx.
The kernel code that comes with the ELDK is very close to the vanilla kernel.org tree (plus some local extensions that have not yet been pushed upstream). The 8xx support in both trees is absolutely identical, i. e. the fact that 8xx code is in the ELDK has the very same reason why x86 code is there, or why sh4 or etrax or ... code is theee, even if these systems are not supported by the ELDK at all - this code is part of the vanilla kernel.org tree.
AFAIK, 2.6 has never been fully ported to the TQM8xxL and TQM8xxM systems yet.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Computers are not intelligent. They only think they are.