找到了主线内核分支,可以通过tftp启动,但缺少设备树无法继续
日至:
(这里使用的设备树是同CPU的rtd1195-qnap-ts-228)
+h1bj
U-Boot 2012.07-g593d2f1-dirty (Sep 01 2016 - 15:39:48)
CPU : Cortex-A7 dual core
Board: Realtek QA Board
DRAM: 1 GiB
Watchdog: Disabled
Cache: Enabled
Non-Cache Region: 1 MB@0x07900000
MMC: rtk_emmc : Detect chip rev. >= B
RTD1195 eMMC: 0
rtk_emmc : Detect chip rev. >= B
mmc->version=0x00010000
version=0x00000004
SDR select (sample/push) : 0x00/0x00
[LY] cardtype=57, mmc->card_caps=0f
[LY] TBD : to support DDR50/HS200
[LY] SDR bus width=2
SDR select (sample/push) : 0x00/0x00
[LY] mmc->boot_caps = 203
[LY] sdr50 : 0
exit from mmc_startup(),err=0
Device: RTD1195 eMMC
Manufacturer ID: 11
OEM: 100
Name: 004GE
Tran Speed: 3197500
Rd Block Len: 512
MMC version 4.0
High Capacity: No
Capacity: 3.7 GiB
Bus Width: 8-bit
Speed: SDR50
Net: Realtek PCIe GBE Family Controller mcfg = 0024
dev->name=r8168#0
167,sw_boot_init
SECURE_BOOT enter!
Cache: Enabled
Non-Cache Region: 1 MB@0x07900000
hardware name = R140B
74,sw_ptable_init
Read Partition ptable,offset = 0,length = 2000,addr=6000000
130,sw_ptentry_read
Read Partition ptable,offset = 200000,length = 2000,addr=6000000
30,sw_mmc_read
offset:200000,lengh=2000,addr=6000000, blk:1000,cnt:10
56,sw_ptable_check
mtd_parts=mtdparts=emmc:2M(loader),2M(ptable),2M(devinfo),2M(misc),16M(logo),24M(recovery),24M(boot),48M(swdb),320M(backup),320M(cache),480M(system),2856M(data)
ptable->cksum=0x298b,count=12
ptn=0 name='loader' flags=0x0 offset=0x0 size=0x2
ptn=1 name='ptable' flags=0x0 offset=0x2 size=0x2
ptn=2 name='devinfo' flags=0x0 offset=0x4 size=0x2
ptn=3 name='misc' flags=0x0 offset=0x6 size=0x2
ptn=4 name='logo' flags=0x0 offset=0x8 size=0x10
ptn=5 name='recovery' flags=0x0 offset=0x18 size=0x18
ptn=6 name='boot' flags=0x0 offset=0x30 size=0x18
ptn=7 name='swdb' flags=0x40 offset=0x48 size=0x30
ptn=8 name='backup' flags=0x40 offset=0x78 size=0x140
ptn=9 name='cache' flags=0x40 offset=0x1b8 size=0x140
ptn=10 name='system' flags=0x40 offset=0x2f8 size=0x1e0
ptn=11 name='data' flags=0x80 offset=0x4d8 size=0xb28
63,sw_devinfo_init
28,sw_partition_size_get
43,sw_partition_read
Read Partition devinfo,offset = 400000,length = 8000,addr=6100000
30,sw_mmc_read
offset:400000,lengh=8000,addr=6100000, blk:2000,cnt:40
43,sw_partition_read
Read Partition devinfo,offset = 500000,length = 8000,addr=6108000
30,sw_mmc_read
offset:500000,lengh=8000,addr=6108000, blk:2800,cnt:40
26,sw_devmsg_check
devmsg count =9,checksum=0x9405
26,sw_devmsg_check
devmsg count =9,checksum=0x9405
44,sw_devmsgext_check
devmsgext count =1,checksum=0x3364,size=74
44,sw_devmsgext_check
devmsgext count =1,checksum=0x3364,size=74
85,sw_logo_display
179,sw_devinfo_value_get
fmt[7]=720p_60Hz
43,sw_partition_read
Read Partition logo,offset = 800000,length = 2000,addr=6300000
30,sw_mmc_read
offset:800000,lengh=2000,addr=6300000, blk:4000,cnt:10
logo @ 02002000 (offset:2000,size:384000)
43,sw_partition_read
Read Partition logo,offset = 802000,length = 384000,addr=2002000
30,sw_mmc_read
offset:802000,lengh=384000,addr=2002000, blk:4010,cnt:1c20
179,sw_devinfo_value_get
Not found devinfo recoverykey
179,sw_devinfo_value_get
Not found devinfo backupkey
179,sw_devinfo_value_get
Not found devinfo resumekey
179,sw_devinfo_value_get
Not found devinfo factorycode
179,sw_devinfo_value_get
Not found devinfo surportallkey
179,sw_devinfo_value_get
365,sw_irkey_detect
normal mode
57,sw_boot_misc_detect
43,sw_partition_read
Read Partition misc,offset = 600000,length = 2000,addr=6200000
30,sw_mmc_read
offset:600000,lengh=2000,addr=6200000, blk:3000,cnt:10
msg: command=
msg: command=
106,sw_download_detect
367,sw_bootimg_init
43,sw_partition_read
Read Partition boot,offset = 3000000,length = 2000,addr=6500000
30,sw_mmc_read
offset:3000000,lengh=2000,addr=6500000, blk:18000,cnt:10
swbootimg: bad ENCRYPT boot image magic
Hit Esc or Tab key to enter console mode or rescue linux: 0
Start Boot Setup ...
[ERR] rtk_plat_prepare_fw_image_from_eMMC:Signature() error!
Enter console mode, disable watchdog ...
Realtek> ping 192.168.100.1
ping failed; host 192.168.100.1 is not alive
Realtek> ping 192.168.100.1
host 192.168.100.1 is alive
Realtek> env print
baudrate=115200
bootargs=console=ttyS0,115200 earlyprintk loglevel=4
bootcmd=bootr
bootdelay=0
ethact=r8168#0
ethaddr=14:3D:F2:39:02:B2
fdt_loadaddr=0x01FF2000
gatewayip=192.168.100.1
ipaddr=192.168.100.100
kernel_loadaddr=0x03000000
mtd_part=mtdparts=emmc:2M(loader),2M(ptable),2M(devinfo),2M(misc),16M(logo),24M(recovery),24M(boot),48M(swdb),320M(backup),320M(cache),480M(system),2856M(data)
netmask=255.255.255.0
rootfs_loadaddr=0x02200000
serverip=192.168.100.1
Environment size: 496/131068 bytes
Realtek> tftp 0x01FF2000 192.168.100.1:rescue.emmc.dtb && tftp 0x03000000 192.168.100.1:emmc.uImage && bootm 0x03000000 - 0x01FF2000
TFTP from server 192.168.100.1; our IP address is 192.168.100.100
Filename 'rescue.emmc.dtb'.
Load address: 0x1ff2000
Loading: #####
done
Bytes transferred = 16424 (4028 hex)
TFTP from server 192.168.100.1; our IP address is 192.168.100.100
Filename 'emmc.uImage'.
Load address: 0x3000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
################
done
Bytes transferred = 12280384 (bb6240 hex)
## Booting kernel from Legacy Image at 03000000 ...
Image Name: Linux-6.18.49-gccfec616dd2e-dirt
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 12280320 Bytes = 11.7 MiB
Load Address: 00108000
Entry Point: 00108000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01ff2000
Booting using the fdt blob at 0x01ff2000
Loading Kernel Image ... OK
OK
Starting kernel ...