try turning on early console in the openwrt menuconfig

Global build settings->Compile the kernel with early printk

the kernel will then tell you hopefully why it fails to boot



On 18/01/11 11:41, Zintis Pētersons wrote:
> arcnum is set to 2502 (0x09c6):
> 
>       echo -en "\x09\x1c\xa0\xe3\xc6\x10\x81\xe3" >
> $(KDIR)/qnap-ts41x-zImage
> 
>       cat $(LINUX_DIR)/arch/arm/boot/zImage >> $(KDIR)/qnap-ts41x-zImage
>       $(STAGING_DIR_HOST)/bin/mkimage -A arm -O linux -T kernel \
>       -C none -a 0x00008000 -e 0x00008000 -n 'Linux-$(LINUX_VERSION)' \
>       -d $(KDIR)/qnap-ts41x-zImage $(KDIR)/qnap-ts41x-uImage
> 
> I followed instructions from there:
> http://www.cyrius.com/debian/kirkwood/qnap/ts-41x/ and there is no mention
> about mainlineLinux. I'll try it later. 
> 
> I unpacked zImage
> ftp://ftp.debian.org/debian/dists/testing/main/installer-armel/current/image
> s/kirkwood/network-console/qnap/ts-41x/kernel and packed it back to uImage
> the same way as Openwrt. The kernel booted normally.
> 
> 
> -----Original Message-----
> From: openwrt-devel-boun...@lists.openwrt.org
> [mailto:openwrt-devel-boun...@lists.openwrt.org] On Behalf Of John Crispin
> Sent: Tuesday, January 18, 2011 11:09 AM
> To: openwrt-devel@lists.openwrt.org
> Subject: Re: [OpenWrt-Devel] QNAP porting
> 
> mainlineLinux=no   should be yes afaik and you need to set the arcnum
> 
> 
> On 18/01/11 07:47, Zintis Pētersons wrote:
>> baudrate=115200
>> loads_echo=0
>> ipaddr=192.168.0.50
>> serverip=192.168.0.1
>> rootpath=/mnt/ARM_FS/
>> netmask=255.255.255.0
>> run_diag=yes
>> console=console=ttyS0,115200
>> CASset=min
>> MALLOC_len=1
>> ethprime=egiga0
>> bootargs=console=ttyS0,115200 root=/dev/ram initrd=0xa00000,0x900000
>> ramdisk=34816
>> bootcmd=cp.l 0xf8200000 0x800000 0x080000;cp.l 0xf8400000 0xa00000 
>> 0x240000;bootm 0x800000
>> ethaddr=00:50:43:00:02:02
>> ethmtu=1500
>> usb0Mode=host
>> netretry=no
>> rcvrip=169.254.100.100
>> loadaddr=0x02000000
>> autoload=no
>> ethact=egiga0
>> stdin=serial
>> stdout=serial
>> stderr=serial
>> mainlineLinux=no
>> enaMonExt=no
>> enaCpuStream=no
>> enaWrAllo=no
>> pexMode=RC
>> disL2Cache=no
>> setL2CacheWT=yes
>> disL2Prefetch=yes
>> enaICPref=yes
>> enaDCPref=yes
>> sata_dma_mode=yes
>> netbsd_en=no
>> bootdelay=1
>> disaMvPnp=no
>> bootp_vendor_class=F_TS-419P+
>> enaAutoRecovery=yes
>> pcieTune=no
>>
>> Environment size: 809/4092 bytes
>>
>> -----Original Message-----
>> From: openwrt-devel-boun...@lists.openwrt.org
>> [mailto:openwrt-devel-boun...@lists.openwrt.org] On Behalf Of John 
>> Crispin
>> Sent: Tuesday, January 18, 2011 8:46 AM
>> To: openwrt-devel@lists.openwrt.org
>> Subject: Re: [OpenWrt-Devel] QNAP porting
>>
>> show us the printenv output please
>>
>>
>> On 18/01/11 07:07, Zintis Pētersons wrote:
>>> I’m trying to port GNAP TS-419P+ to OpenWrt. I have tested (from
>>> http://www.cyrius.com/debian/kirkwood/qnap/ts-41x/) that Debian 
>>> kernel works well.
>>>
>>>  
>>>
>>> The OpenWrt kernel doesnt boot. The serial console output gives 
>>> strage output – garbage (See below.). Could anyone give me a hint 
>>> what is the problem?
>>>
>>>  
>>>
>>>          __  __                      _ _
>>>
>>>         |  \/  | __ _ _ ____   _____| | |
>>>
>>>         | |\/| |/ _` | '__\ \ / / _ \ | |
>>>
>>>         | |  | | (_| | |   \ V /  __/ | |
>>>
>>>         |_|  |_|\__,_|_|    \_/ \___|_|_|
>>>
>>> _   _     ____              _
>>>
>>> | | | |   | __ )  ___   ___ | |_
>>>
>>> | | | |___|  _ \ / _ \ / _ \| __|
>>>
>>> | |_| |___| |_) | (_) | (_) | |_
>>>
>>> \___/    |____/ \___/ \___/ \__|  ** LOADER **
>>>
>>> ** MARVELL BOARD: DB-88F6282A-BP LE TS-419P+ ,PHY=1.8v
>>>
>>>  
>>>
>>> U-Boot 1.1.4 (Sep 20 2010 - 15:17:40) Marvell version: 3.5.3
>>>
>>>  
>>>
>>> U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CD5C0
>>>
>>>  
>>>
>>> Soc: 88F6282 A0CPU running @ 1600Mhz L2 running @ 533Mhz
>>>
>>> SysClock = 533Mhz , TClock = 200Mhz
>>>
>>>  
>>>
>>> DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
>>>
>>> DRAM CS[0] base 0x00000000   size 256MB
>>>
>>> DRAM CS[1] base 0x10000000   size 256MB
>>>
>>> DRAM Total size 512MB  16bit width
>>>
>>> Addresses 8M - 0M are saved for the U-Boot usage.
>>>
>>> Mem malloc Initialization (8M - 7M): Done
>>>
>>> [16384kB@f8000000] Flash: 16 MB
>>>
>>>  
>>>
>>> CPU : Marvell Feroceon (Rev 1)
>>>
>>> USB 0: host mode
>>>
>>> PEX 0: PCI Express Root Complex Interface
>>>
>>> PEX interface detected Link X1
>>>
>>> PEX 1: PCI Express Root Complex Interface
>>>
>>> PEX interface detected Link X1
>>>
>>>  
>>>
>>> Reset IDE:
>>>
>>> Marvell Serial ATA Adapter
>>>
>>> Integrated Sata device found
>>>
>>>  
>>>
>>> Net:   egiga0 [PRIME], egiga1
>>>
>>> Hit any key to stop autoboot:  0
>>>
>>> ## Booting image at 00800000 ...
>>>
>>>    Image Name:   Linux-2.6.35.9
>>>
>>>    Created:      2011-01-17  22:36:38 UTC
>>>
>>>    Image Type:   ARM Linux Kernel Image (uncompressed)
>>>
>>>    Data Size:    1090396 Bytes =  1 MB
>>>
>>>    Load Address: 00008000
>>>
>>>    Entry Point:  00008000
>>>
>>>    Verifying Checksum ... OK
>>>
>>> OK
>>>
>>>  
>>>
>>> Starting kernel ...
>>>
>>>  
>>>
>>> Uncompressing Linux... done, booting the kernel.
>>>
>>> d®qP+e5gA+ĖN:V&Iw¬YwĖQ747Ct©WCuWB*EP+eueXµz*QP&bjo
>>>
>>>  
>>> Ŗ1+PB,SZ4J„¬RÉTa).Je7Ōė].*mØZ%cF+RI:®7w]$e%½
>>>
>>>  
>>> )ØĖBX¬kfT!)iI-h(*„AT;Q1+µiP®·i:­QwbqŖźTjAqŖW5Øa„ÅF<£¬5]7¼wA9;Ö;]seq)
>>>
>>>      M, @,
>>>
>>>           NF-we}(ÖEQs®UE¹U
>>>
>>>                           E4-q­)A3ŗ
>>>
>>>                                    “e5­JEw£(Q4=P 
>>>
> ź~6-ex]P×gI§I1<ōwTGQ8.ā§]9¬wA7gBP„ĒA4(VkI{NX,6ĘÕ+]1;ŌźYw¬t®uPŌge7«ŖŅh=ÉD„B
>>> :uiEIz„A5Øi:©Bpq,    B(X®@,
>>>
>>> Y0ģg×N8¤ėTQ (U+QP­ĖI­Ēeu­W$-¾d0­G"(SJ 
>>> 2.+eU£(ei:.bE4-e4(+E4-¢gi:.*uP+V&(Õ§IsVBZ+iJ"-iqU2§|7¹ŖA3Ŗ
>>>
>>>  
>>> DA;:
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> openwrt-devel mailing list
>>> openwrt-devel@lists.openwrt.org
>>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>>
>> _______________________________________________
>> openwrt-devel mailing list
>> openwrt-devel@lists.openwrt.org
>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>>
>> _______________________________________________
>> openwrt-devel mailing list
>> openwrt-devel@lists.openwrt.org
>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to