Welcome! Log In Create A New Profile

Advanced

Help! Akitio mycloudmini using stock kernel but missing system setting files

Posted by Popo 
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 18, 2023 02:13PM
Popo,

> finally...
> I will try
> uboot.2015.10-tld-2.ox820.bodhi.tar
> to boot & installation ovm when I have some free
> time next weekend.

Right on! I was going to suggest this. Because you have proven that this box can run at 850MHz, it's better to run the NAND u-boot version.

The u-boot in NAND migth also solve the MTD problem. I'm not seeing any MTD problem on my Pogo V3 Pro.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 12/18/2023 03:35PM by bodhi.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 18, 2023 05:26PM
Dear Bodhi:

This is what I am thinking about, whether I can get a better solution by changing the methods and paths.
Anyway, I no longer care about MTD, or how to do NAND partitioning.

In any case, there is no doubt that any software version of PogoPlugV3 can solve the "Boot Kernel" problem.
Even so, we can achieve the NAND partitioning method I want through dtb modification and device-tree modification.

Thank you very much for your advice and guidance. Like your name, I also have a guiding figure in my religion (grew up in ancient India), just like your name. I'm sure you know which one I'm talking about. By the way, judging from your name, you should be an Indian friend, right?

In the past month, I have gained a lot of valuable knowledge and broadened my horizons. Now that I'm no longer new to Embeded System, I can fully grasp what I want to achieve. I will set up my own compilation environment and development environment after Christmas because I want to understand and learn more. Especially U-Boot and ARM program development.

Thank you again for your guidance and advice that helped open this door for me.
Although I have not written programs under Linux for more than five years.
So I don’t know much about versions after 4.X. But I believe I will make up for what I lack.

Thank you for your help & suggestions.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 18, 2023 06:12PM
Hi Popo,

> Like your name, I also have a guiding figure in my
> religion (grew up in ancient India), just like
> your name. I'm sure you know which one I'm talking
> about. By the way, judging from your name, you
> should be an Indian friend, right?

Incorrect guess :) I'm not Indian. I chose the name because I like what it means.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 26, 2023 03:35PM
Dear bodhi:

I try to flash MTD but it bricks.

first time I boot my machine plug hdd/usb
second time I boot my machine unplug hdd/usb
third time I boot my machine just usb plug.
But, no lucky, it bricks.

U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
  Boot device: NAND
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set

as follow as my step.


root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
# pogoplug pro
  /dev/mtd0               0x00100000      0x20000         0x20000

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# /usr/sbin/flash_erase /dev/mtd0 0x0 6
Erasing 128 Kibyte @ a0000 -- 100 % complete

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# /usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img
Writing data to block 0 at offset 0x0

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# /usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-2.ox820.mtd0.img
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000
Writing data to block 5 at offset 0xa0000

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# /usr/sbin/flash_erase /dev/mtd0 0x00100000 1
Erasing 128 Kibyte @ 100000 -- 100 % complete

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# /usr/sbin/nandwrite -s 1048576 /dev/mtd0 uboot.2015.10-tld-2.ox820.environment.img
Writing data to block 8 at offset 0x100000

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# fw_printenv
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x60500000; fi; fi
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
usb_custom_params=zswap.enabled=1
device=0:1
devices=usb ide
disks=0 1 2 3
ethaddr=52:3b:20:9c:11:51
ethact=mii0
if_netconsole=ping $serverip
ipaddr=192.168.0.222
serverip=192.168.0.220
dtb_file=/boot/dts/ox820-pogoplug-pro.dtb
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device 0x62c00000 $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device 0x60e00000 /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device 0x60500000 /boot/uImage
mainlineLinux=yes
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 0x60500000 /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x60510000  $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi#

I try the 2nd time to flash.
First i flash_erase 0x0 - 0x440000, and do flash again.
this time, I just flash
uboot.spl.2013.10.ox820.850mhz.mtd0.img
uboot.2015.10-tld-2.ox820.mtd0.img

No uboot.2015.10-tld-2.ox820.environment.img

Still situation.

have any suggestion ?

Question 1:

I use ox820-akitio.dtb to boot from debian and flash mtd0 (0x0 - 0x26c0000)
does u-boot detect the mtd partition size?

That's because , ox820-pogoplug-classic.dtb lock the boot partition to un-writable.
So, I use ox920-akitio.dtb.

Question 2:

uboot.2015.10-tld-2.ox820.mtd0.img is not S-record format file, right?

Question 3:

uboot.2015.10-tld-2.ox820.mtd0.img will detect my memory ?
Maybe, perhaps , this u-boot just can support 128MB ?



Edited 5 time(s). Last edit at 12/26/2023 03:53PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 26, 2023 06:01PM
Popo,

This is the case where the more experience you have, the more trouble you will get :)

Prerequisites (so that we can see if there is any other errors before flashing):

cat /proc/mtd
dmesg | grep -i bad
fw_printenv > current_ens.txt
nanddump --noecc --omitoob -f mtd0  /dev/mtd0

Flashing:

Quote

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# /usr/sbin/flash_erase /dev/mtd0 0x0 6
root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# /usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img
root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# /usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-2.ox820.mtd0.img

OK

Quote

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# /usr/sbin/flash_erase /dev/mtd0 0x00100000 1
root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# /usr/sbin/nandwrite -s 1048576 /dev/mtd0 uboot.2015.10-tld-2.ox820.environment.img

OK

Quote

I use ox820-akitio.dtb to boot from debian and flash mtd0 (0x0 - 0x26c0000)
does u-boot detect the mtd partition size?

mtd0 partition size is irrelevant, as long as it is about 2M or more. During boot, raw NAND is used.


Quote

That's because , ox820-pogoplug-classic.dtb lock the boot partition to un-writable.
So, I use ox920-akitio.dtb.

This was fixed in later kernel version. It's ok to copy the new DTB and run with old kernel (this kernel on the rootfs is not too old).

Quote

uboot.2015.10-tld-2.ox820.mtd0.img is not S-record format file, right?

We don't care what format it is, since it was created by mkimage for u-boot.

Quote

uboot.2015.10-tld-2.ox820.mtd0.img will detect my memory ?
Maybe, perhaps , this u-boot just can support 128MB ?

Usually, less memory u-boot will run on box that has more memory. However, this u-boot was quite hackish, I don't remember what was hardcoded.

However, the u-boot on HDD was built from the same source (for booting Pogo V3 using HDD raw sector), and it runs fine in your Akitio box, so RAM is not likely the problem.

The following text should be output:
U-Boot 2015.10-tld-1 (Nov 21 2015 - 01:17:59 -0800)
OXNAS OX820

DRAM:  128 MiB

Where it stops at
PLLA Set

It is like the SPL does not know where u-boot image is, or it did but cannot start u-boot at all.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 26, 2023 06:18PM
Dear bodhi:

Every step I need to make sure/verify the device is working, I do, although I don't post those steps in the article.

It is like the SPL does not know where u-boot image is, or it did but cannot start u-boot at all.

cat /proc/mtd <-- I did
dmesg | grep -i bad <-- I did
fw_printenv > current_ens.txt <-- the original stock firmware have no env data
nanddump --noecc --omitoob -f mtd0  /dev/mtd0 <- I did many times before. right ? even I did this after I flash yours and to ensure content used hexdump


That's what I though.
I use hexdump(/dev/mtd0) to ensure the code in the right position and as the same as 'uboot.spl.2013.10.ox820.850mhz.mtd0.img/uboot.2015.10-tld-2.ox820.mtd0.img'

So, what's the possible problems?
any suggestion ?



Edited 1 time(s). Last edit at 12/26/2023 06:22PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 26, 2023 06:47PM
OK so you have a bricked NAND (until you reflash the mtd0 backup). You got nothing to lose :)

Instead of flashing this u-boot image.
/usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-2.ox820.mtd0.img

Boot back to Debian using HDD raw sector method.

Replace uboot.2015.10-tld-2.ox820.mtd0.img with the u-boot image that you use to flash HDD raw sector (I can't remember that image name). Let's call that u-boot.img.

/usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.img

Keep the current SPL on NAND as is.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 12/26/2023 06:48PM by bodhi.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 26, 2023 07:57PM
>
> Replace uboot.2015.10-tld-2.ox820.mtd0.img with
> the u-boot image that you use to flash HDD raw
> sector (I can't remember that image name). Let's
> call that u-boot.img.
>
>
> /usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.img
>
>
> Keep the current SPL on NAND as is.

Unfortunately,

root@debian:/boot# /usr/sbin/nandwrite -s 262144 /dev/mtd0 u-boot.img
Input file is not page-aligned. Use the padding option.
nandwrite: error!: Data was only partially written due to error
           error 0 (Success)

524288 Oct 21 2017 uboot.2015.10-tld-2.ox820.mtd0.img
525880 Aug 3 2014 u-boot.img

524288 - 525880 = -456

So, do I need to append "0x00" (at least 456 bytes) in u-boot.img?


Update :

root@debian:/boot# /usr/sbin/nandwrite -p -s 262144 /dev/mtd0 u-boot.img
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000
Writing data to block 5 at offset 0xa0000
Writing data to block 6 at offset 0xc0000

root@debian:/boot# hexdump -C -s $((16#20000)) /dev/mtd0

000c0610  ec 6b 07 64 17 00 00 00  f0 6b 07 64 17 00 00 00  |.k.d.....k.d....|
000c0620  f4 6b 07 64 17 00 00 00  f8 6b 07 64 17 00 00 00  |.k.d.....k.d....|
000c0630  fc 6b 07 64 17 00 00 00  ff ff ff ff ff ff ff ff  |.k.d............|
000c0640  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
026c0000



Edited 3 time(s). Last edit at 12/26/2023 08:17PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 26, 2023 08:31PM
root@debian:~# hexdump -C /dev/mtd0
00000000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
026c0000
root@debian:~# hexdump -C /dev/mtd1
00000000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
0d940000
root@debian:~# dmesg |grep -i bad
[    3.752855] Scanning device for bad blocks
root@debian:~#
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 026c0000 00020000 "boot"
mtd1: 0d940000 00020000 "data"
root@debian:~#

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# flash_erase /dev/mtd0 0x0 6
Erasing 128 Kibyte @ a0000 -- 100 % complete
root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img
Writing data to block 0 at offset 0x0
root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# /usr/sbin/nandwrite -p -s 262144 /dev/mtd0 ../u-boot.img
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000
Writing data to block 5 at offset 0xa0000
Writing data to block 6 at offset 0xc0000
root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# hexdump -C -s $((16#20000)) /dev/mtd0
00020000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00040000  27 05 19 56 84 7f 25 65  53 d3 65 c8 00 08 05 f8  |'..V..%eS.e.....|
00040010  64 00 00 00 00 00 00 00  06 ec b7 18 11 02 05 00  |d...............|
00040020  55 2d 42 6f 6f 74 20 32  30 31 33 2e 31 30 2d 67  |U-Boot 2013.10-g|
00040030  33 61 30 66 33 38 30 2d  64 69 72 74 79 20 66 6f  |3a0f380-dirty fo|
00040040  13 00 00 ea 14 f0 9f e5  14 f0 9f e5 14 f0 9f e5  |................|
00040050  14 f0 9f e5 14 f0 9f e5  14 f0 9f e5 14 f0 9f e5  |................|
00040060  c0 00 00 64 20 01 00 64  80 01 00 64 e0 01 00 64  |...d ..d...d...d|
00040070  40 02 00 64 a0 02 00 64  00 03 00 64 78 56 34 12  |@..d...d...dxV4.|
00040080  00 00 00 64 00 6c 07 00  d4 5e 0c 00 f8 05 08 00  |...d.l...^......|
00040090  de c0 ad 0b 00 00 0f e1  1f 00 c0 e3 d3 00 80 e3  |................|
000400a0  00 f0 29 e1 01 00 00 eb  7b 01 00 eb 1e ff 2f e1  |..).....{...../.|
000400b0  00 00 a0 e3 17 0f 07 ee  17 0f 08 ee 10 0f 11 ee  |................|
000400c0  23 0c c0 e3 87 00 c0 e3  02 00 80 e3 01 0a 80 e3  |#...............|
000400d0  10 0f 01 ee 0e c0 a0 e1  81 7f 01 eb 0c e0 a0 e1  |................|
000400e0  0e f0 a0 e1 00 00 a0 e1  00 00 a0 e1 00 00 a0 e1  |................|
000400f0  00 00 a0 e1 00 00 a0 e1  00 00 a0 e1 00 00 a0 e1  |................|
00040100  78 d0 1f e5 00 e0 8d e5  00 e0 4f e1 04 e0 8d e5  |x.........O.....|

poweroff & poweron

U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
  Boot device: NAND
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set

frustraction....:-(



Update:

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# mtdinfo /dev/mtd0;mtdinfo /dev/mtd1
mtd0
Name:                           boot
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          310 (40632320 bytes, 38.8 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:0
Bad blocks are allowed:         true
Device is writable:             true

mtd1
Name:                           data
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          1738 (227803136 bytes, 217.2 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:2
Bad blocks are allowed:         true
Device is writable:             true



Edited 3 time(s). Last edit at 12/26/2023 09:22PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 26, 2023 09:55PM
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 026c0000 00020000 "boot"
mtd1: 0d940000 00020000 "data"


root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# flash_erase /dev/mtd0 0x0 6
Erasing 128 Kibyte @ a0000 -- 100 % complete

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img
Writing data to block 0 at offset 0x0

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# /usr/sbin/nandwrite -p -s 262144 /dev/mtd0 ../u-boot.img
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000
Writing data to block 5 at offset 0xa0000
Writing data to block 6 at offset 0xc0000

So this u-boot image is larger than 4 blocks, then the erase command must erase 7 blocks.

flash_erase /dev/mtd0 0x0 7

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 26, 2023 10:11PM

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# flash_erase /dev/mtd0 0x0 7
Erasing 128 Kibyte @ c0000 -- 100 % complete

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img
Writing data to block 0 at offset 0x0

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# nandwrite -s 262144 /dev/mtd0 ../u-boot.img
Input file is not page-aligned. Use the padding option.
nandwrite: error!: Data was only partially written due to error
           error 0 (Success)

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# nandwrite -p -s 262144 /dev/mtd0 ../u-boot.img
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000
Writing data to block 5 at offset 0xa0000
Writing data to block 6 at offset 0xc0000

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi#

After Reboot

U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
  Boot device: NAND
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 27, 2023 12:19AM
Popo,

I have no other suggestion.

Running with HDD u-boot ain't too bad, it works well.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 27, 2023 01:13AM
I try nand read from u-boot(raw sector version)

it seems just can load 0x3c000(240k) size ,

over this size will cause fail (nand read fail code -72)

the u-boot image has 512k bytes.



Edited 1 time(s). Last edit at 12/27/2023 01:14AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 27, 2023 02:38PM
> I try nand read from u-boot(raw sector version)
>
> it seems just can load 0x3c000(240k) size ,
>
> over this size will cause fail (nand read fail
> code -72)

Please post log. I'm happier to see the log.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 27, 2023 07:30PM
OK,

After an overnight cross test. Let me tell you my conjectures and conclusions.

I used three different sources for testing.

1.Akitio Stock Stage-1 spl/U-Boot (I got it from the original mtd0)
2.stg-212 stock firmware about mtd1.backup(spl)/mtd2.backup(u-boot)
However, these 3 archives use JEDEC format (? I'm not sure, you can see aa/55 UU encoding in the archives)

For these two firmwares, during the SPL stage, memory testing will be performed after PLL SET.

next step

All these spls will execute the code at position 0x40000 on nand (U-BOOT code)
They can execute JEDEC format, but not U-boot uImage format.

In your spl execution result, I only saw PLL SET, but I did not see the memory test and image search prompt messages, so I would think that the entire program had frozen during the memory test stage.



as following as stg212 stock firmware,
I used stg212-spl to execute akitio u-boot, but just can get 128M memory.
I used akitio-spl to execute stg212 u-boot, but can get 256M memory
But, these 2 version U-boot is so lack function (early 1.1.2), At least stg212 fix my tftpboot problem.

Stage-1 Bootloader Tue Aug  9 16:44:00 CST 2011
Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing
Reading NAND, Image 0
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 OK


U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:256 MiB
*** Warning - bad CRC, using default environment

Erasing at 0x3c0000 -- 13107200% complete.
OK
 131072 bytes written: OK
Writing to Nand... done
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0
$
$
$ printenv
bootcmd=run boot_nand
bootdelay=2
baudrate=115200
ethaddr=00:30:e0:00:00:01
ipaddr=192.168.50.100
serverip=192.168.50.59
autoload=n
netmask=255.255.0.0
bootfile="uImage"
load_nand=nboot 61000000 0 440000
boot=bootm 61000000
boot_nand=run load_nand boot
MODEL_ID=AB03
PRODUCT_NAME=STG-212
VENDOR_NAME=MitraStar Technology Corp.
stdin=serial
stdout=serial
stderr=serial
bootargs= console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes
$ ping 192.168.20.252
Wait GMAC to reset
Wait for PHY reset
PHY is Realtek RTL8211D
Wait for link to come up...............Link up
Wait for auto-negotiation to complete
Link is 1000M

ARP Resend request
host 192.168.20.252 is alive
$ bdinfo
arch_number = 0x00000480
env_t       = 0x00000000
boot_params = 0x60000100
DRAM bank   = 0x00000000
-> start    = 0x60000000
-> size     = 0x08000000
ethaddr     = 00:30:E0:00:00:01
ip_addr     = 192.168.50.100
baudrate    = 115200 bps
$ version

U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

So, My guest...
maybe , perhaps, no one to test this spl version for 256M (even Pogoplug V3 modding chip to 256M) when it move to NAND.

I tried the third situation, use yours spl to execute stg212/akitio U-boot code(position 0x40000 on NAND),But it still stuck after 'PLL SET'.

So, I say that , this version can't use 256M after on NAND. ( I don't know why .....)


Every time, before my testing. I use flash_eraseall /dev/mtd0 to ensure it clear . OMG...THE NAND CHIP LIFE......



Edited 2 time(s). Last edit at 12/27/2023 08:17PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 27, 2023 09:03PM
Use AkitioSPL to execute stg-212 U-boot

Stage-1 Bootloader 一  8月 30 10:55:36 CST 2010
Attempting to set PLLA to 700MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000E0000
  plla_ctrl2 : 0x001B01A0
  plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading NAND, Image 0
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 OK


U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:256 MiB
*** Warning - bad CRC, using default environment

Erasing at 0x3c0000 -- 13107200% complete.
OK
 131072 bytes written: OK
Writing to Nand... done
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0

Use stg-212 spl to execute stg-212-uboot and try to execute yours U-boot (CHAIN-BOOT)..

Stage-1 Bootloader Tue Aug  9 16:44:00 CST 2011
Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing
Reading NAND, Image 0
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 OK


U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:256 MiB
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0

Loading from device 0: 256MiB 3,3V 8-bit (offset 0x440000)
   Image Name:   U-Boot 2015.10-tld-2 for ox820 b
   Image Type:   ARM U-Boot Firmware (uncompressed)
   Data Size:    506644 Bytes = 494.8 kB
   Load Address: 64000000
   Entry Point:  00000000
## Booting image at 61000000 ...
   Image Name:   U-Boot 2015.10-tld-2 for ox820 b
   Image Type:   ARM U-Boot Firmware (uncompressed)
   Data Size:    506644 Bytes = 494.8 kB
   Load Address: 64000000
   Entry Point:  00000000
   Verifying Checksum ... OK
Wrong Image Type for bootm command
$

//sigh .... no way ,......hahahaha...I am crazy ...
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 27, 2023 09:43PM
Pogo,

Have you tried these combos yet?

- Akitio SPL with uboot.2015.10-tld-2.ox820.mtd0.img
- STG212 SPL with uboot.2015.10-tld-2.ox820.mtd0.img

Remember that you don't care how much memory it will get. The goal is booting a better u-boot.

=====

At this point you could write to NAND as much as you need, since you already can boot from HDD u-boot on raw sector.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 27, 2023 09:56PM
bodhi Wrote:
-------------------------------------------------------
> Pogo,
>
> Have you tried these combos yet?
>
> - Akitio SPL with
> uboot.2015.10-tld-2.ox820.mtd0.img
> - STG212 SPL with
> uboot.2015.10-tld-2.ox820.mtd0.img
>

of course that.

I flash uboot.2015.10-tld-2.ox820.mtd0.img on NAND in 0x40000.
But, as you can see that uboot.2015.10-tld-2.ox820.mtd0.img which is 'ARM u-boot uImage' format.
the SPL of Akitio/Stg-212 can't execute it directly.








> Remember that you don't care how much memory it
> will get. The goal is booting a better u-boot.
>

AND , YES!

I need 256M and usb boot function, so that I must start your u-boot successful.

the spl of akitio/stg212 can't start uImage format directly.

it will loop ..loop ...loop...

Stage-1 Bootloader Tue Aug  9 16:44:00 CST 2011
Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing
Reading NAND, Image 0
Failed to correct error
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed



> =====
>
> At this point you could write to NAND as much as
> you need, since you already can boot from HDD
> u-boot on raw sector.



Edited 1 time(s). Last edit at 12/27/2023 10:02PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 27, 2023 10:20PM
Another way ,

The size of uboot.2015.10-tld-2.ox820.mtd0.img that is 512k.

I try to dd seek

dd if=uboot.2015.10-tld-2.ox820.mtd0.img of=bodhi-uboot.img bs=1 skip=$((16#44EC)) count=$((16#7BB14))

and flash it to 0x40000 on nand.

Let me try it ...



root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# dd if=uboot.2015.10-tld-2.ox820.mtd0.img of=bodhi-uboot.img bs=1 skip=$((16#44EC)) count=$((16#7BB14))
506644+0 records in
506644+0 records out
506644 bytes (507 kB, 495 KiB) copied, 34.5013 s, 14.7 kB/s
root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# ls -alh
total 298M
drwxr-xr-x 2 root root 4.0K Dec 27 20:22 .
drwxr-xr-x 4 root root 4.0K Dec 26 09:55 ..
-rw-r--r-- 1 root root 495K Dec 27 20:23 bodhi-uboot.img
-rw-r--r-- 1 root root  13K Dec 27 12:34 history.txt
-rw-r--r-- 1 root root  39M Dec 27 11:26 mtd0
-rw-r--r-- 1 root root 128K Dec 27 12:14 mtd0.0x20000
-rw-r--r-- 1 root root 512K Dec 27 12:30 mtd0.0x40000
-rw-r--r-- 1 root root 512K Dec 27 12:32 mtd0.nandread
-rw-r--r-- 1 root root  39M Dec 27 12:07 mtd0.spl
-rw-r--r-- 1 root root 218M Dec 27 11:30 mtd1
-rw-r--r-- 1 root root 2.6K Oct 22  2017 uboot.2015.10-tld-2.ox820.environment
-rw-r--r-- 1 root root 128K Oct 22  2017 uboot.2015.10-tld-2.ox820.environment.img
-rw-r--r-- 1 root root 512K Oct 21  2017 uboot.2015.10-tld-2.ox820.mtd0.img
-rw-r--r-- 1 root root 128K Sep  7  2014 uboot.spl.2013.10.ox820.850mhz.mtd0.img
root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# hexdump -C bodhi-uboot.img |more
00000000  b0 41 07 00 84 00 00 00  78 52 07 00 f0 40 2d e9  |.A......xR...@-.|
00000010  01 50 a0 e1 02 60 a0 e1  9c 30 9f e5 9c 20 9f e5  |.P...`...0... ..|
00000020  03 30 8f e0 02 40 93 e7  14 d0 4d e2 68 30 84 e2  |.0...@....M.h0..|
00000030  04 30 8d e5 64 30 84 e2  00 30 8d e5 00 70 a0 e1  |.0..d0...0...p..|
00000040  02 30 a0 e3 04 20 a0 e1  06 10 a0 e1 05 00 a0 e1  |.0... ..........|
00000050  65 5d 00 eb 00 00 50 e3  06 00 00 0a 60 00 9f e5  |e]....P.....`...|
00000060  00 00 8f e0 ea 55 00 eb  01 50 a0 e3 05 00 a0 e1  |.....U...P......|
00000070  14 d0 8d e2 f0 80 bd e8  70 30 84 e2 08 30 8d e5  |........p0...0..|
00000080  6c 30 84 e2 04 30 8d e5  05 10 a0 e1 00 40 8d e5  |l0...0.......@..|


root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# flash_eraseall /dev/mtd0
flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it
Erasing 128 Kibyte @ 26a0000 -- 100 % complete

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# nandwrite -s $((16#0)) /dev/mtd0 /mnt/Public/archlinux/NAS7820-Tools-master/flash-recovery-hdd/MedionNAS/mtd1.backup
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000

root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi# nandwrite -p -s $((16#40000)) /dev/mtd0 bodhi-uboot.img
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000
Writing data to block 5 at offset 0xa0000
root@debian:/boot/uboot.2015.10-tld-2.ox820.bodhi#


UPDATE:

Still loop for searching image ....

Stage-1 Bootloader Tue Aug  9 16:44:00 CST 2011
Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing
Reading NAND, Image 0
Failed to correct error
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed



Edited 2 time(s). Last edit at 12/27/2023 10:34PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 27, 2023 10:41PM
Quote

I flash uboot.2015.10-tld-2.ox820.mtd0.img on NAND in 0x40000.
But, as you can see that uboot.2015.10-tld-2.ox820.mtd0.img which is 'ARM u-boot uImage' format.
the SPL of Akitio/Stg-212 can't execute it directly.

That does not sound right. There must be other reason. The SPL for the ox820 SoC should use the same u-boot image format.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 27, 2023 10:50PM
bodhi Wrote:
-------------------------------------------------------
>
> That does not sound right. There must be other
> reason. The SPL for the ox820 SoC should use the
> same u-boot image format.


# file uboot.2015.10-tld-2.ox820.mtd0.img 
uboot.2015.10-tld-2.ox820.mtd0.img: u-boot legacy uImage, U-Boot 2015.10-tld-2 for ox820 b\270, Firmware/ARM, Firmware Image (Not compressed), 506644 bytes, Sun Oct 22 05:00:26 2017, Load Address: 0x64000000, Entry Point: 0x00000000, Header CRC: 0x6676C66A, Data CRC: 0xE8178E9B

# binwalk uboot.2015.10-tld-2.ox820.mtd0.img 

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
401140        0x61EF4         CRC32 polynomial table, little endian
402164        0x622F4         CRC32 polynomial table, little endian
432575        0x699BF         LZO compressed data

Not at all......
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 28, 2023 09:36AM
Dear bodhi :

In case , about this post and this post

Where is the u-boot.bin file ?

I want to try 'go' command to CHAIN-LOAD your u-boot.

Can you explain that ?


--
UPDATE:

Maybe, It's time to build my own u-boot & kernel to work on may akitio mycloud mini.

//sigh ....

It seems not easy , after I study and read the source code from github.

Conclusion:

1. I think file is OK, the NAND is OK , no bad block, even I do testing to flash_eraseall every time.
2. akitio/stg212 spl which I got is ok , But just can 700Mhz/750Mhz
3. akitio/stg212 uboot can be used by akitio/stg212 spl, but not used by yours hackist spl version.
4. akitio/stg212 spl will loop to search uboot image on 0x4000 when uboot doesn't exists.
5. akitio/stg212 can't start up yours uboot image. (even the uboot is arm uimage format)
6. your uboot stuck on boot, no message to know what happened. (no source code, can't modify, it is hackist)
7. In conclusion: the hackist spl is not suitable for my akitio machine (maybe 256M cause ? lock by HW address initialize.)
8. akitio uboot can be 256M, but stg212 is not.(just only 128M)
9. The only way to got 256M for resource, just can be success to start uboot.

akitio/stg212 is lack funciton on uboot, akitio uboot can't saveenv. I hate this version. all of the env sertting in the source code.

Every body on Pogoplug V3 is successful, but I am not.
So sad and frustration. :-(


Question:

I know spl/uboot has special content format (I don't know what is it , S-record? I really wan to know this 'raw binary format')

Can I flash the normal format spl version to 0x0 on nand ? I never try, I just guess 'no way' ...(may it's a stupid question)



Edited 5 time(s). Last edit at 12/28/2023 10:43AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 28, 2023 03:09PM
Popo,

> I want to try 'go' command to CHAIN-LOAD your
> u-boot.
>
> Can you explain that ?

I've attached the image to this post.

You would load the image uboot.2015.10-tld-2.ox820.bin to memory, and execute a go command at the image location. Put the image in rootfs /boot. Attach the USB rootfs, power up, interrupt serial console and follow tthis example:

Quote

Chainload

U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
Boot device: NAND
Attempting to set PLLA to 850 MHz ...
plla_ctrl0 : 0000020a
plla_ctrl1 : 00330000
plla_ctrl2 : 0065008b
plla_ctrl3 : 000000f1

PLLA Set


U-Boot 2013.10-tld-5 (Mar 07 2015 - 16:50:17) for OXNAS

DRAM: 128 MiB
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net:
Led: GREEN
mii0
Main Loop
Hit any key to stop autoboot: 0
OX820> usb start
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
OX820> load usb 0:1 0x64000000 /localdisk/linux/uboot/uboot.2015.10-tld-2.ox820.bin
506644 bytes read in 1458 ms (338.9 KiB/s)
OX820> go 0x64000000
## Starting application at 0x64000000 ...


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM: 128 MiB
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net: dwmac.40400000
Hit any key to stop autoboot: 0


If USB is not supported, use tftp to load it the same way.

> Every body on Pogoplug V3 is successful, but I am
> not.
> So sad and frustration. :-(

You are successful. You can run from SATA raw sector without issue. Sometime we lose a battle but wining the war :) overall, is there any reason why you cannot continue booting with SATA raw sector?

> Can I flash the normal format spl version to 0x0
> on nand ? I never try, I just guess 'no way'
> ...(may it's a stupid question)

The SPL is encoded to run with this SoC. But you could try. It will not hurt, since you can boot with SATA, you can restore it to the orignal.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - uboot.2015.10-tld-2.ox820.bin (494.8 KB)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 29, 2023 12:33AM
Dear bodhi:

I don't know how to express my gratitude. Your Excellency has always taken the trouble to give me guidance and support. The resources you provide are very powerful and easy to use. Also rescued many machines that had been turned into bricks.
I am serious about saying that I am an IT GUY.
Maybe it also has something to do with my zodiac sign. Unless everything is over, I always hope to be perfect.
Now that I have entered this field, I will study it to the end. These successful methods just gave me a lot of positive list verification results. I will work hard on research and development.

Another thing, remember what I mentioned, I cracked the secret of Stock Firmware.
I don't know if it's out of "protection" or "fun", but the engineers at Akitio or SilverStone really... deserve a beating.

Start at 0x440000, Uboot will extract the Kernel uImage here to start the system.

I found that there is indeed a uImage in the range 0x440000-0xe00000, but the result is that the Code is repeated every 2048 bytes.

uImage Head: 64 bytes, the first time appears at 0x440000, the second time appears at 0x440800. By analogy, the entire uImage is placed in an Odd/Even cross within 2048bytes(one block). I wrote a program to actually separate the entire uImage, and finally got the complete uImage file. It is also dismantled from it to the stage of CPIO.

The following is the file content:


DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
107776        0x1A500         ASCII cpio archive (SVR4 with no CRC), file name: "/dev", file name length: "0x00000005", file size: "0x00000000"
107892        0x1A574         ASCII cpio archive (SVR4 with no CRC), file name: "/dev/console", file name length: "0x0000000D", file size: "0x00000000"
108016        0x1A5F0         ASCII cpio archive (SVR4 with no CRC), file name: "/root", file name length: "0x00000006", file size: "0x00000000"
108132        0x1A664         ASCII cpio archive (SVR4 with no CRC), file name: "TRAILER!!!", file name length: "0x0000000B", file size: "0x00000000"
1466049       0x165EC1        Certificate in DER format (x509 v3), header length: 4, sequence length: 5124
1868045       0x1C810D        Certificate in DER format (x509 v3), header length: 4, sequence length: 1280
2364089       0x2412B9        Certificate in DER format (x509 v3), header length: 4, sequence length: 1284
2364209       0x241331        Certificate in DER format (x509 v3), header length: 4, sequence length: 1288
2364973       0x24162D        Certificate in DER format (x509 v3), header length: 4, sequence length: 1284
2875429       0x2BE025        Certificate in DER format (x509 v3), header length: 4, sequence length: 5404
3493929       0x355029        Certificate in DER format (x509 v3), header length: 4, sequence length: 5376
3543357       0x36113D        Certificate in DER format (x509 v3), header length: 4, sequence length: 1292
3543361       0x361141        Certificate in DER format (x509 v3), header length: 4, sequence length: 1304
3543365       0x361145        Certificate in DER format (x509 v3), header length: 4, sequence length: 1308
3712073       0x38A449        Certificate in DER format (x509 v3), header length: 4, sequence length: 5376
4094308       0x3E7964        Linux kernel version "2.6.31.6-fast-20110114 (thom@11z) (gcc version 4.5.1 (GCC) ) #1 SMP Fri Jan 14 13:58:20 CST 2011"
4629328       0x46A350        CRC32 polynomial table, little endian
5101536       0x4DD7E0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/init/main.c
5104876       0x4DE4EC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/init/initramfs.c
5105464       0x4DE738        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/kernel/process.c
5106844       0x4DEC9C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/kernel/setup.c
5107568       0x4DEF70        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/kernel/traps.c
5109508       0x4DF704        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/mm/dma-mapping.c
5110172       0x4DF99C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/mm/fault.c
5111100       0x4DFD3C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/mm/init.c
5111592       0x4DFF28        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/mm/ioremap.c
5111704       0x4DFF98        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/mm/pgd.c
5113276       0x4E05BC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/common/gic.c
5113412       0x4E0644        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/mach-ox820/ox820.c
5113920       0x4E0840        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/mach-ox820/rps-irq.c
5114092       0x4E08EC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/mach-ox820/platsmp.c
5114976       0x4E0C60        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/plat-oxnas/dma.c
5116640       0x4E12E0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/plat-oxnas/fast_open_filter.c
5117176       0x4E14F8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/plat-oxnas/incoherent_sendfile.c
5120248       0x4E20F8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/plat-oxnas/sata_helper.c
5120380       0x4E217C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/arch/arm/plat-oxnas/direct_writes.c
5122288       0x4E28F0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/sched_rt.c
5122760       0x4E2AC8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/fork.c
5123372       0x4E2D2C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/printk.c
5123860       0x4E2F14        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/cpu.c
5124256       0x4E30A0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/include/linux/pid_namespace.h
5124756       0x4E3294        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/resource.c
5124976       0x4E3370        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/sysctl.c
5126200       0x4E3838        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/capability.c
5126424       0x4E3918        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/ptrace.c
5126680       0x4E3A18        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/signal.c
5127012       0x4E3B64        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/sys.c
5127292       0x4E3C7C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/workqueue.c
5127536       0x4E3D70        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/rcupdate.c
5128312       0x4E4078        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/kthread.c
5128564       0x4E4174        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/hrtimer.c
5129056       0x4E4360        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/cred.c
5129212       0x4E43FC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/async.c
5129420       0x4E44CC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/time/timekeeping.c
5130732       0x4E49EC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/time/clockevents.c
5131076       0x4E4B44        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/futex.c
5131192       0x4E4BB8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/rtmutex_common.h
5131316       0x4E4C34        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/rtmutex.c
5131736       0x4E4DD8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/module.c
5133204       0x4E5394        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/kallsyms.c
5133716       0x4E5594        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/irq/manage.c
5134852       0x4E5A04        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/irq/chip.c
5135204       0x4E5B64        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/irq/devres.c
5135364       0x4E5C04        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/rcutree.c
5135516       0x4E5C9C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/kernel/sched_cpupri.c
5135632       0x4E5D10        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/bootmem.c
5136156       0x4E5F1C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/filemap.c
5136908       0x4E620C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/page_alloc.c
5138100       0x4E66B4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/include/linux/gfp.h
5138328       0x4E6798        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/page-writeback.c
5138432       0x4E6800        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/pdflush.c
5138928       0x4E69F0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/shmem.c
5139144       0x4E6AC8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/include/linux/dcache.h
5139320       0x4E6B78        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/prio_tree.c
5141096       0x4E7268        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/page_isolation.c
5141580       0x4E744C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/mm_init.c
5142068       0x4E7634        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/memory.c
5142320       0x4E7730        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/mprotect.c
5143252       0x4E7AD4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/swapfile.c
5143836       0x4E7D1C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/dmapool.c
5145124       0x4E8224        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/slub.c
5146892       0x4E890C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/mm/allocpercpu.c
5146992       0x4E8970        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/open.c
5147644       0x4E8BFC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/file_table.c
5147844       0x4E8CC4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/super.c
5148116       0x4E8DD4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/exec.c
5148308       0x4E8E94        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/pipe.c
5148556       0x4E8F8C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/dcache.c
5148916       0x4E90F4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/inode.c
5149228       0x4E922C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/filesystems.c
5149448       0x4E9308        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/namespace.c
5149916       0x4E94DC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/libfs.c
5150032       0x4E9550        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/include/linux/highmem.h
5150228       0x4E9614        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/pnode.c
5150380       0x4E96AC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/sync.c
5151056       0x4E9950        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/bio.c
5151432       0x4E9AC8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/block_dev.c
5151692       0x4E9BCC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/direct-io.c
5152184       0x4E9DB8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/notify/dnotify/dnotify.c
5152624       0x4E9F70        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/notify/inotify/inotify_user.c
5152956       0x4EA0BC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/aio.c
5153400       0x4EA278        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/locks.c
5155064       0x4EA8F8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/proc/generic.c
5157324       0x4EB1CC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/proc/proc_sysctl.c
5157892       0x4EB404        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/partitions/ldm.c
5160488       0x4EBE28        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/sysfs/sysfs.h
5160840       0x4EBF88        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/sysfs/dir.c
5160960       0x4EC000        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/sysfs/symlink.c
5161164       0x4EC0CC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/sysfs/bin.c
5161420       0x4EC1CC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/devpts/inode.c
5162736       0x4EC6F0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ext3/fsync.c
5163572       0x4ECA34        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ext3/inode.c
5163856       0x4ECB50        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/include/linux/ext3_fs.h
5172480       0x4EED00        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ext2/balloc.c
5173036       0x4EEF2C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ext2/dir.c
5175644       0x4EF95C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ext4/balloc.c
5176160       0x4EFB60        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ext4/fsync.c
5176860       0x4EFE1C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ext4/inode.c
5178036       0x4F02B4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ext4/namei.c
5184632       0x4F1C78        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ext4/extents.c
5185284       0x4F1F04        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ext4/mballoc.c
5187280       0x4F26D0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ext4/move_extent.c
5188000       0x4F29A0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/jbd/commit.c
5188360       0x4F2B08        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/jbd/recovery.c
5188568       0x4F2BD8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/jbd/checkpoint.c
5188744       0x4F2C88        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/jbd/revoke.c
5190024       0x4F3188        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/jbd2/transaction.c
5190136       0x4F31F8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/jbd2/commit.c
5190388       0x4F32F4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/jbd2/recovery.c
5190576       0x4F33B0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/jbd2/revoke.c
5191664       0x4F37F0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/fat/cache.c
5192080       0x4F3990        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/fat/dir.c
5193792       0x4F4040        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/fat/inode.c
5194860       0x4F446C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/fat/namei_vfat.c
5195292       0x4F461C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/nfs/client.c
5198284       0x4F51CC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/nfs/file.c
5199772       0x4F579C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/nfs/inode.c
5204376       0x4F6998        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/nfs/direct.c
5204576       0x4F6A60        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/nfs/pagelist.c
5204692       0x4F6AD4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/nfs/proc.c
5205776       0x4F6F10        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/nfs/write.c
5207404       0x4F756C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/nfs/nfs4proc.c
5208224       0x4F78A0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/nfs/nfs4xdr.c
5210036       0x4F7FB4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/nfs/nfs4state.c
5210532       0x4F81A4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/nfs/idmap.c
5212264       0x4F8868        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/lockd/clntproc.c
5212796       0x4F8A7C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/lockd/host.c
5213552       0x4F8D70        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/lockd/svc.c
5216168       0x4F97A8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/lockd/svcsubs.c
5218172       0x4F9F7C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ubifs/journal.c
5218620       0x4FA13C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ubifs/dir.c
5224288       0x4FB760        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ubifs/tnc.c
5225488       0x4FBC10        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/ubifs/replay.c
5227940       0x4FC5A4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/fuse/dev.c
5228552       0x4FC808        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/fuse/control.c
5229120       0x4FCA40        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/xfs_alloc.c
5229948       0x4FCD7C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/xfs_btree.c
5230368       0x4FCF20        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/xfs_da_btree.c
5231500       0x4FD38C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/xfs_fsops.c
5232536       0x4FD798        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/xfs_iget.c
5234376       0x4FDEC8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/xfs_iomap.c
5234716       0x4FE01C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/xfs_log.c
5236536       0x4FE738        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/xfs_log_recover.c
5239876       0x4FF444        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/xfs_mount.c
5241800       0x4FFBC8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/xfs_trans.c
5242312       0x4FFDC8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/xfs_vnodeops.c
5242952       0x500048        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/xfs_rw.c
5243212       0x50014C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/linux-2.6/xfs_aops.c
5243528       0x500288        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/linux-2.6/xfs_buf.c
5246428       0x500DDC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/linux-2.6/xfs_sync.c
5246608       0x500E90        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/fs/xfs/support/debug.c
5247064       0x501058        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/ipc/sem.c
5247224       0x5010F8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/ipc/shm.c
5247668       0x5012B4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/security/security.c
5248032       0x501420        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/crypto/scatterwalk.c
5248600       0x501658        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/crypto/aead.c
5248748       0x5016EC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/crypto/ablkcipher.c
5248848       0x501750        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/crypto/blkcipher.c
5249212       0x5018BC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/crypto/algboss.c
5250788       0x501EE4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/crypto/testmgr.c
5270364       0x506B5C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/block/elevator.c
5270652       0x506C7C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/include/linux/blkdev.h
5271168       0x506E80        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/block/blk-core.c
5271652       0x507064        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/block/blk-tag.c
5271824       0x507110        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/block/blk-sysfs.c
5272156       0x50725C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/block/blk-barrier.c
5272412       0x50735C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/block/blk-ioc.c
5272832       0x507500        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/block/genhd.c
5273252       0x5076A4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/block/noop-iosched.c
5273484       0x50778C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/block/as-iosched.c
5273664       0x507840        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/block/deadline-iosched.c
5274504       0x507B88        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/lib/idr.c
5274880       0x507D00        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/lib/kobject.c
5275456       0x507F40        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/lib/kobject_uevent.c
5275712       0x508040        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/lib/kref.c
5276032       0x508180        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/lib/string.c
5276244       0x508254        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/lib/bitmap.c
5277164       0x5085EC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/gpio/gpiolib.c
5277440       0x508700        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/char/random.c
5277852       0x50889C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/char/tty_io.c
5279088       0x508D70        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/char/n_tty.c
5279356       0x508E7C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/char/tty_ldisc.c
5279540       0x508F34        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/char/tty_buffer.c
5279944       0x5090C8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/char/pty.c
5280340       0x509254        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/char/vt.c
5281812       0x509814        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/serial/serial_core.c
5282492       0x509ABC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/serial/8250.c
5283204       0x509D84        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/base/core.c
5283532       0x509ECC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/base/sys.c
5284048       0x50A0D0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/base/bus.c
5284296       0x50A1C8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/base/dd.c
5284444       0x50A25C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/base/driver.c
5284672       0x50A340        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/base/class.c
5285036       0x50A4AC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/base/devres.c
5285240       0x50A578        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/base/transport_class.c
5285912       0x50A818        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/base/firmware_class.c
5286344       0x50A9C8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/block/loop.c
5286800       0x50AB90        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/scsi/scsi.c
5287656       0x50AEE8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/scsi/hosts.c
5288444       0x50B1FC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/scsi/scsi_error.c
5288612       0x50B2A4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/scsi/scsi_lib.c
5289464       0x50B5F8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/scsi/scsi_scan.c
5295028       0x50CBB4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/scsi/sd.c
5298404       0x50D8E4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/ata/libata-core.c
5305008       0x50F2B0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/ata/libata-scsi.c
5305876       0x50F614        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/ata/libata-eh.c
5309056       0x510280        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/ata/libata-sff.c
5310076       0x51067C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/ata/ox820sata.c
5312116       0x510E74        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/mtd/mtdcore.c
5312904       0x511188        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/mtd/mtdpart.c
5313204       0x5112B4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/mtd/mtd_blkdevs.c
5313484       0x5113CC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/mtd/nand/nand_base.c
5323888       0x513C70        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/mtd/ubi/wl.c
5324244       0x513DD4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/mtd/ubi/scan.c
5325672       0x514368        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/net/gmac/gmac-napi.c
5327756       0x514B8C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/include/linux/netdevice.h
5329484       0x51524C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/net/gmac/gmac_netoe.c
5330500       0x515644        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/net/tun.c
5332300       0x515D4C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/include/linux/usb.h
5332660       0x515EB4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/usb/core/hub.c
5341748       0x518234        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/usb/host/ehci-mem.c
5342084       0x518384        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/usb/host/ehci-q.c
5342352       0x518490        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/usb/host/ehci-sched.c
5345207       0x518FB7        Unix path: /S70/S75/505V/F505/F707/F717/P8
5348152       0x519B38        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/input/input.c
5349256       0x519F88        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/input/keyboard/gpio_keys.c
5349384       0x51A008        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/rtc/hctosys.c
5349660       0x51A11C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/rtc/class.c
5349980       0x51A25C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/rtc/rtc-dev.c
5350916       0x51A604        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/i2c/i2c-core.c
5352796       0x51AD5C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/md/linear.c
5353104       0x51AE90        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/md/raid0.c
5354124       0x51B28C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/md/raid1.c
5356500       0x51BBD4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/md/md.c
5361496       0x51CF58        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/md/bitmap.c
5362668       0x51D3EC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/drivers/md/ox820hwraid.c
5365660       0x51DF9C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/socket.c
5366604       0x51E34C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/core/sock.c
5366928       0x51E490        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/core/request_sock.c
5367112       0x51E548        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/include/linux/skbuff.h
5367464       0x51E6A8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/core/datagram.c
5368748       0x51EBAC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/core/dev.c
5369836       0x51EFEC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/core/ethtool.c
5371128       0x51F4F8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/core/rtnetlink.c
5371396       0x51F604        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/core/filter.c
5371524       0x51F684        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/core/net-sysfs.c
5372264       0x51F968        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sched/sch_generic.c
5372668       0x51FAFC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/netlink/af_netlink.c
5372888       0x51FBD8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/netlink/genetlink.c
5373256       0x51FD48        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/route.c
5374528       0x520240        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/inetpeer.c
5374744       0x520318        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/ip_fragment.c
5375040       0x520440        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/ip_output.c
5375216       0x5204F0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/inet_hashtables.c
5376012       0x52080C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/tcp_input.c
5376504       0x5209F8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/tcp_output.c
5376640       0x520A80        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/tcp_timer.c
5377328       0x520D30        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/tcp_ipv4.c
5377672       0x520E88        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/tcp_cong.c
5378000       0x520FD0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/include/net/udp.h
5378988       0x5213AC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/icmp.c
5379272       0x5214C8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/devinet.c
5379728       0x521690        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/af_inet.c
5380608       0x521A00        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/igmp.c
5380824       0x521AD8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/fib_semantics.c
5384824       0x522A78        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv4/xfrm4_mode_beet.c
5385880       0x522E98        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/unix/af_unix.c
5386020       0x522F24        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/unix/garbage.c
5386328       0x523058        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv6/ip6_output.c
5386444       0x5230CC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv6/addrconf.c
5387572       0x523534        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv6/addrlabel.c
5387896       0x523678        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv6/route.c
5389224       0x523BA8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv6/raw.c
5389796       0x523DE4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv6/reassembly.c
5390128       0x523F30        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv6/tcp_ipv6.c
5390840       0x5241F8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv6/inet6_connection_sock.c
5392048       0x5246B0        Neighborly text, "NeighborSolicitst/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv6/inet6_hashtables.c"
5392068       0x5246C4        Neighborly text, "NeighborAdvertisements.1.0-sources/linux-kernel/net/ipv6/inet6_hashtables.c"
5392108       0x5246EC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/ipv6/inet6_hashtables.c
5392360       0x5247E8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/packet/af_packet.c
5392868       0x5249E4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/clnt.c
5396616       0x525888        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/xprtsock.c
5398504       0x525FE8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/sched.c
5400720       0x526890        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/svc.c
5400952       0x526978        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/svcsock.c
5402924       0x52712C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/svcauth_unix.c
5404184       0x527618        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/xdr.c
5404308       0x527694        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/cache.c
5404520       0x527768        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/rpc_pipe.c
5405332       0x527A94        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/svc_xprt.c
5407132       0x52819C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/auth_gss/auth_gss.c
5408212       0x5285D4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/auth_gss/svcauth_gss.c
5408852       0x528854        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/auth_gss/gss_krb5_seal.c
5409032       0x528908        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/auth_gss/gss_krb5_wrap.c
5409152       0x528980        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/sunrpc/auth_gss/gss_krb5_crypto.c
5409788       0x528BFC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/wireless/wext.c
5410188       0x528D8C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/wireless/util.c
5411032       0x5290D8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/wireless/scan.c
5411768       0x5293B8        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/mac80211/main.c
5411964       0x52947C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/include/net/cfg80211.h
5412516       0x5296A4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/mac80211/agg-tx.c
5413136       0x529910        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/mac80211/ibss.c
5413792       0x529BA0        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/mac80211/mlme.c
5414852       0x529FC4        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/mac80211/iface.c
5415116       0x52A0CC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/mac80211/cfg.c
5415404       0x52A1EC        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/mac80211/tx.c
5415540       0x52A274        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/mac80211/key.c
5415740       0x52A33C        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/mac80211/util.c
5416020       0x52A454        Unix path: /mnt/data/plx7821/SDK_1.1.0-sources/linux-kernel/net/mac80211/rc80211_minstrel.c

I don't know if you have gotten similar reference code before. But I know that without the Technical Data Book of this SoC, all the resources in the list will be very helpful.

I disassembled this into the final CPIO format file attachment in the article, hoping it will be helpful to those who are interested.

File Download

Regards,
Popo


UPDATE:
I think , between 0xe00000 - 0x26c0000 , Data is not 'garbage'...It's Technical DataBook for PLX7821.....
Because I found some term/wording...


After I successfully discovered these secrets, I just wanted to scream:

WTF!!!!!
WTF!!!!!
WTF!!!!!

The stock U-Boot is really a 'garbage/trash'
just for customize for this products.
The only advantage is that he can get real 256M memory usage rights.
Nothing else can be done!


I think their company did not plan to update KERNEL for customers in the first place.
This is a terrible fact!!







Edited 4 time(s). Last edit at 12/29/2023 01:41AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
January 02, 2024 08:04PM
OK, feedback my result of chainload :

Use stg-212 spl/uboot on NAND to execute uboot.2015.10-tld-2.ox820.bin


Stage-1 Bootloader Tue Aug  9 16:44:00 CST 2011
Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing
Reading NAND, Image 0
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 OK


U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:256 MiB
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0
$
$ printenv
bootcmd=run boot_nand
bootdelay=2
baudrate=115200
ethaddr=00:30:e0:00:00:01
autoload=n
netmask=255.255.0.0
bootfile="uImage"
load_nand=nboot 61000000 0 440000
boot=bootm 61000000
boot_nand=run load_nand boot
MODEL_ID=AB03
PRODUCT_NAME=STG-212
VENDOR_NAME=MitraStar Technology Corp.
ipaddr=192.168.10.249
serverip=192.168.20.252
stdin=serial
stdout=serial
stderr=serial
bootargs= console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes

Environment size: 476/131068 bytes
$
bootcmd=run boot_nand
bootdelay=2
baudrate=115200
ethaddr=00:30:e0:00:00:01
autoload=n
netmask=255.255.0.0
bootfile="uImage"
load_nand=nboot 61000000 0 440000
boot=bootm 61000000
boot_nand=run load_nand boot
MODEL_ID=AB03
PRODUCT_NAME=STG-212
VENDOR_NAME=MitraStar Technology Corp.
ipaddr=192.168.10.249
serverip=192.168.20.252
stdin=serial
stdout=serial
stderr=serial
bootargs= console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes

Environment size: 476/131068 bytes
$ tftpboot 64000000 /boot/uboot.2015.10-tld-2.ox820.bin
Wait GMAC to reset
Wait for PHY reset
PHY is Realtek RTL8211D
Wait for link to come up...............Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.20.252; our IP address is 192.168.10.249
Filename '/boot/uboot.2015.10-tld-2.ox820.bin'.
Load address: 0x64000000
Loading: *
ARP Resend request
T invalid RARP header
#################################################################
         ##################################
done
Bytes transferred = 506644 (7bb14 hex)
$ bdinfo
arch_number = 0x00000480
env_t       = 0x00000000
boot_params = 0x60000100
DRAM bank   = 0x00000000
-> start    = 0x60000000
-> size     = 0x08000000
ethaddr     = 00:30:E0:00:00:01
ip_addr     = 192.168.10.249
baudrate    = 115200 bps
$ go 64000000
## Starting application at 0x64000000 ...




U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  128 MiB
NAND:  256 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
OX820> printenv
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootcmd=run bootcmd_uenv; run dt_bootcmd_usb; reset
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
console=console=ttyS0,115200n8
devices=usb ide
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=dwmac.40400000
ethaddr=5e:2b:15:71:ec:b6
if_netconsole=ping $serverip
ipaddr=192.168.0.222
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=run if_netconsole start_netconsole
serverip=192.168.0.220
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x60500000
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10

Environment size: 1988/131068 bytes
OX820> bdinfo
arch_number = 0x00000480
boot_params = 0x60000100
DRAM bank   = 0x00000000
-> start    = 0x60000000
-> size     = 0x08000000
eth0name    = dwmac.40400000
ethaddr     = 5e:2b:15:71:ec:b6
current eth = dwmac.40400000
ip_addr     = 192.168.0.222
baudrate    = 115200 bps
TLB addr    = 0x67FF0000
relocaddr   = 0x67F28000
reloc off   = 0x03F28000
irq_sp      = 0x67E27EF0
sp start    = 0x67E27EE0
OX820>


Still can't got 256MB DRAM to use....



Edited 1 time(s). Last edit at 01/02/2024 11:48PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
January 02, 2024 08:25PM
If I boot from SATA...


U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 - 14:31:34)
  Boot device: SATA
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set
Bus 0: OK
  Device 0:
** File not found /boot/bootargs.bin **


U-Boot 2013.10-g3a0f380-dirty (Jul 26 2014 - 10:18:57) for OXNAS

DRAM:  256 MiB
IDE:   Bus 0: OK
  Device 0: Model: APPLE HDD HTS547550A9E384  Firm: JE3AD70F Ser#: J2600055GJDE2E
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:
Led:    GREEN
mii0
Main Loop
Hit any key to stop autoboot:  0
OX820 #
OX820 #
OX820 # printenv
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8 mem=256M mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs) earlyprint
bootcmd=run dt_bootcmd_ide
bootdelay=3
bootm_noinitrd=bootm $uimage_addr - $dtb_addr
console=console=ttyS0,115200n8
dt_bootcmd_ide=ide start; run dt_ide_bootcmd; ide stop; reset
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_ide_boot=run dt_ide_load_uimage; run dt_ide_load_initrd; run dt_ide_load_dtb; run dt_bootm
dt_ide_bootcmd=run ide_set_bootargs; run dt_sata_boot
dt_ide_load_dtb=ext2load ide 0:1 $dtb_addr /boot/dts/ox820-akitio.dtb
dt_ide_load_initrd=ext2load ide 0:1 $uinitrd_addr /boot/uInitrd
dt_ide_load_uimage=ext2load ide 0:1 $uimage_addr /boot/uImage
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-akitio.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_sata_boot=ext2load ide 0:1 $uimage_addr /boot/uImage; bootm $uimage_addr
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=mii0
ethaddr=00:25:31:01:C6:76
fileaddr=60500000
filesize=22bc
ide_set_bootargs=setenv bootargs root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200n8 mem=256M mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
if_netconsole=ping $serverip
ipaddr=192.168.20.249
mem=256M
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
normalboot=run ide_set_bootargs;run dt_ide_load_uimage; run dt_ide_load_initrd;run dt_ide_load_dtb;run dt_bootm
openwrt_initramfs_boot=tftpboot $uinitrd_addr /openwrt/openwrt-23.05.2-oxnas-ox820-akitio_mycloud-initramfs-uImage
preboot_nc=run if_netconsole start_netconsole
rootfs=root=LABEL=rootfs rootfstype=ext3
sata_bootcmd=run usb_set_bootargs; run sata_boot
serverip=192.168.20.252
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10

Environment size: 2397/16380 bytes
OX820 # tftpboot 64000000 /boot/uboot.2015.10-tld-2.ox820.bin
Waiting for PHY auto negotiation to complete... done
ENET Speed is 1000 Mbps - FULL duplex connection
Using mii0 device
TFTP from server 192.168.20.252; our IP address is 192.168.20.249
Filename '/boot/uboot.2015.10-tld-2.ox820.bin'.
Load address: 0x64000000
Loading: T ###################################
         96.7 KiB/s
done
Bytes transferred = 506644 (7bb14 hex)
OX820 # go 64000000
## Starting application at 0x64000000 ...


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  256 MiB
NAND:  256 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
OX820> bdinfo
arch_number = 0x00000480
boot_params = 0x60000100
DRAM bank   = 0x00000000
-> start    = 0x60000000
-> size     = 0x10000000
eth0name    = dwmac.40400000
ethaddr     = 5e:2b:15:71:ec:b6
current eth = dwmac.40400000
ip_addr     = 192.168.0.222
baudrate    = 115200 bps
TLB addr    = 0x6FFF0000
relocaddr   = 0x6FF28000
reloc off   = 0x0BF28000
irq_sp      = 0x6FE27EF0
sp start    = 0x6FE27EE0
OX820>

It Can get 256MB DRAM to use.

So, this arm ELF, just get vars from the last u-boot stage?
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
January 02, 2024 11:10PM
Try another way.

Use Stg-212 spl, and akitio stock uboot on NAND

Blue: stg-212 spl
Green: akitio uboot
black : uboot.2015.10-tld-2.ox820.bin nandwrite on 0xA40000 (NAND)

Stage-1 Bootloader Tue Aug  9 16:44:00 CST 2011
Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing
Reading NAND, Image 0
  Hdr len: 0x0001A0D8
  Hdr CRC: 0x330E1A94
 OK


U-Boot 1.1.2 (Dec 24 2010 - 12:42:28)

U-Boot code: 60D00000 -> 60D1A0D8  BSS: -> 60D1E790
RAM Configuration:
        Bank #0: 60000000 256 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:256 MiB
Using default environment

In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0
$ nand read 64000000 a40000 7bb14

NAND read: device 0 offset 0xa40000, size 0x7bb14
 506644 bytes read: OK
$ go 64000000
## Starting application at 0x64000000 ...


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  128 MiB
NAND:  256 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
OX820>

as you can see,
akitio stock uboot was successful to get 256MB DRAM,
but uboot.2015.10-tld-2.ox820.bin restore to 128MB DRAM.

and....


OX820> saveenv
Saving Environment to NAND...
Erasing NAND...
Erasing at 0x120000 -- 100% complete.
Writing to NAND... OK
OX820>
OX820>
OX820>
OX820>
OX820> reset
resetting ...
Stage-1 Bootloader Tue Aug  9 16:44:00 CST 2011
Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing
Reading NAND, Image 0
Failed to correct error
  Hdr len: 0x0001A0D8
  Hdr CRC: 0x330E1A94
 read failed
Reading NAND, Image 0
Failed to correct error
  Hdr len: 0x0001A0D8
  Hdr CRC: 0x330E1A94
 read failed

It will overwrite uboot area....



Edited 2 time(s). Last edit at 01/02/2024 11:57PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
January 02, 2024 11:42PM
OK, Finally, The lastest way :

use akitio stock spl + stock uboot

Stage-1 Bootloader 一  8月 30 10:55:36 CST 2010
Attempting to set PLLA to 700MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000E0000
  plla_ctrl2 : 0x001B01A0
  plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading NAND, Image 0
  Hdr len: 0x0001A0D8
  Hdr CRC: 0x330E1A94
 OK


U-Boot 1.1.2 (Dec 24 2010 - 12:42:28)

U-Boot code: 60D00000 -> 60D1A0D8  BSS: -> 60D1E790
RAM Configuration:
        Bank #0: 60000000 256 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:256 MiB
Using default environment

In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0
$ printenv
bootcmd=run extinguishled boot_nand
bootdelay=2
baudrate=115200
ethaddr=00:30:e0:00:00:01
ipaddr=172.31.0.128
serverip=172.31.0.100
autoload=n
netmask=255.255.0.0
bootfile="uImage"
load_nand=nboot 60500000 0 440000
load_nand2=nboot 60500000 0 A40000
lightled=ledfail 1
extinguishled=ledfail 0
boot=bootm 60500000
boot_nand=run load_nand boot || run load_nand2 boot || run lightled
stdin=serial
stdout=serial
stderr=serial
bootargs=root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mem=256M poweroutage=yes mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01

Environment size: 576/8188 bytes
$ nand read 64000000 a40000 7bb14

NAND read: device 0 offset 0xa40000, size 0x7bb14
 506644 bytes read: OK
$ go 64000000
## Starting application at 0x64000000 ...


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  256 MiB
NAND:  256 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
OX820> printenv
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootcmd=run bootcmd_uenv; run dt_bootcmd_usb; reset
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
console=console=ttyS0,115200n8
devices=usb ide
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=dwmac.40400000
ethaddr=5e:2b:15:71:ec:b6
if_netconsole=ping $serverip
ipaddr=192.168.0.222
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=run if_netconsole start_netconsole
serverip=192.168.0.220
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x60500000
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10

Environment size: 1988/131068 bytes
OX820>

It can get 256MB DRAM....



Edited 2 time(s). Last edit at 01/02/2024 11:56PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
January 03, 2024 12:59AM
So, The finally and finally of lastest way "

USE AKITIO SPL (700MHz raw binary format)
USE STG-212 UBOOT(NAND ON 0x40000 raw binary format)

Stage-1 Bootloader 一  8月 30 10:55:36 CST 2010
Attempting to set PLLA to 700MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000E0000
  plla_ctrl2 : 0x001B01A0
  plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading NAND, Image 0
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 OK


U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:256 MiB
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0

Loading from device 0: 256MiB 3,3V 8-bit (offset 0x440000)

** Bad Magic Number 0xffffffff **
$ printenb
Unknown command 'printenb' - try 'help'
$ printenv
bootcmd=run boot_nand
bootdelay=2
baudrate=115200
ethaddr=00:30:e0:00:00:01
ipaddr=192.168.50.100
serverip=192.168.50.59
autoload=n
netmask=255.255.0.0
bootfile="uImage"
load_nand=nboot 61000000 0 440000
boot=bootm 61000000
boot_nand=run load_nand boot
MODEL_ID=AB03
PRODUCT_NAME=STG-212
VENDOR_NAME=MitraStar Technology Corp.
stdin=serial
stdout=serial
stderr=serial
bootargs= console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes

Environment size: 475/131068 bytes
$ setenv ipaddr 192.168.10.249
$ setenv serverip 192.168.20.252
$ tftpboot 64000000 /boot/uboot.2015.10-tld-2.ox820.bin
Wait GMAC to reset
Wait for PHY reset
PHY is Realtek RTL8211D
Wait for link to come up...............Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.20.252; our IP address is 192.168.10.249
Filename '/boot/uboot.2015.10-tld-2.ox820.bin'.
Load address: 0x64000000
Loading: *
ARP Resend request
T invalid RARP header
#################################################################
         ##################################
done
Bytes transferred = 506644 (7bb14 hex)
$ go 64000000
## Starting application at 0x64000000 ...


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  256 MiB
NAND:  256 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
OX820>
OX820>
OX820>
OX820>
OX820>
OX820>
OX820>

It can get 256M DRAM .....

and write env ? I will try ...

SO, The point is , spl must be succesful to open 256M setting...

UPDATE:

Damn.....almost perfect....

saveenv cause overwrite uboot area........

Damn.


Stage-1 Bootloader 一  8月 30 10:55:36 CST 2010
Attempting to set PLLA to 700MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000E0000
  plla_ctrl2 : 0x001B01A0
  plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading NAND, Image 0
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 OK


U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:256 MiB
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0
$
$ setenv ipaddr 192.168.10.249
$ setenv serverip 192.168.20.252
$ printenv
bootcmd=run boot_nand
bootdelay=2
baudrate=115200
ethaddr=00:30:e0:00:00:01
autoload=n
netmask=255.255.0.0
bootfile="uImage"
load_nand=nboot 61000000 0 440000
boot=bootm 61000000
boot_nand=run load_nand boot
MODEL_ID=AB03
PRODUCT_NAME=STG-212
VENDOR_NAME=MitraStar Technology Corp.
stdin=serial
stdout=serial
stderr=serial
bootargs= console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes
ipaddr=192.168.10.249
serverip=192.168.20.252

Environment size: 476/131068 bytes
$ saveenv
Saving Environment to NAND...
Erasing at 0x3c0000 -- 13107200% complete.
OK
 131072 bytes written: OK
Writing to Nand... done
$ reset
Stage-1 Bootloader 一  8月 30 10:55:36 CST 2010
Attempting to set PLLA to 700MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000E0000
  plla_ctrl2 : 0x001B01A0
  plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading NAND, Image 0
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 OK


U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:256 MiB
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0
$ printenv
bootcmd=run boot_nand
bootdelay=2
baudrate=115200
ethaddr=00:30:e0:00:00:01
autoload=n
netmask=255.255.0.0
bootfile="uImage"
load_nand=nboot 61000000 0 440000
boot=bootm 61000000
boot_nand=run load_nand boot
MODEL_ID=AB03
PRODUCT_NAME=STG-212
VENDOR_NAME=MitraStar Technology Corp.
ipaddr=192.168.10.249
serverip=192.168.20.252
stdin=serial
stdout=serial
stderr=serial
bootargs= console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes

Environment size: 476/131068 bytes
$ tftpboot 64000000 /boot/uboot.2015.10-tld-2.ox820.bin
Wait GMAC to reset
Wait for PHY reset
PHY is Realtek RTL8211D
Wait for link to come up...............Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.20.252; our IP address is 192.168.10.249
Filename '/boot/uboot.2015.10-tld-2.ox820.bin'.
Load address: 0x64000000
Loading: *
ARP Resend request
T invalid RARP header
#################################################################
         ##################################
done
Bytes transferred = 506644 (7bb14 hex)
$ go 64000000
## Starting application at 0x64000000 ...


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  256 MiB
NAND:  256 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
OX820> printenv
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootcmd=run bootcmd_uenv; run dt_bootcmd_usb; reset
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
console=console=ttyS0,115200n8
devices=usb ide
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=dwmac.40400000
ethaddr=5e:2b:15:71:ec:b6
if_netconsole=ping $serverip
ipaddr=192.168.0.222
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=run if_netconsole start_netconsole
serverip=192.168.0.220
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x60500000
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10

Environment size: 1988/131068 bytes
OX820> setenv serverip 192.168.20.252
OX820> setenv ipaddr 192.168.10.249
OX820> printenv
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootcmd=run bootcmd_uenv; run dt_bootcmd_usb; reset
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
console=console=ttyS0,115200n8
devices=usb ide
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=dwmac.40400000
ethaddr=5e:2b:15:71:ec:b6
if_netconsole=ping $serverip
ipaddr=192.168.10.249
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=run if_netconsole start_netconsole
serverip=192.168.20.252
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x60500000
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10

Environment size: 1990/131068 bytes
OX820> saveenv
Saving Environment to NAND...
Erasing NAND...
Erasing at 0x120000 -- 100% complete.
Writing to NAND... OK
OX820> reset
resetting ...
Stage-1 Bootloader 一  8月 30 10:55:36 CST 2010
Attempting to set PLLA to 700MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000E0000
  plla_ctrl2 : 0x001B01A0
  plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading NAND, Image 0
Failed to correct error
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 read failed
Reading NAND, Image 1
Failed to correct error
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Reading NAND, Image 0  <---- 0x40000 on the NAND
Failed to correct error
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 read failed
Reading NAND, Image 1   <---- 0x240000 on the NAND
Failed to correct error
Failed to correct error
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed

Almost....almost .....

need to modify uboot.2015.10-tld-2.ox820.bin to saveenv to another area...

000fff90  55 55 55 55 55 aa 55 aa  aa 55 aa aa aa 55 55 aa  |UUUUU.U..U...UU.|
000fffa0  55 aa aa aa aa 55 55 aa  55 55 aa aa 55 55 55 aa  |U....UU.UU..UUU.|
000fffb0  55 aa 55 aa aa 55 55 aa  aa 55 55 55 aa 55 aa aa  |U.U..UU..UUU.U..|
000fffc0  55 55 aa aa aa 55 55 aa  aa aa aa aa aa aa aa aa  |UU...UU.........|
000fffd0  aa 55 55 55 aa aa 55 aa  55 aa aa aa aa aa 55 aa  |.UUU..U.U.....U.|
000fffe0  aa 55 55 55 aa aa 55 aa  aa aa 55 aa aa aa 55 aa  |.UUU..U...U...U.|
000ffff0  aa aa aa aa aa 55 aa aa  aa aa 55 aa aa 55 55 aa  |.....U....U..UU.|
00100000  83 fb 72 27 61 75 74 6f  6c 6f 61 64 3d 6e 6f 00  |..r'autoload=no.|
00100010  62 61 75 64 72 61 74 65  3d 31 31 35 32 30 30 00  |baudrate=115200.|
00100020  62 6f 6f 74 61 72 67 73  3d 63 6f 6e 73 6f 6c 65  |bootargs=console|
00100030  3d 74 74 79 53 30 2c 31  31 35 32 30 30 6e 38 00  |=ttyS0,115200n8.|
00100040  62 6f 6f 74 63 6d 64 3d  72 75 6e 20 62 6f 6f 74  |bootcmd=run boot|
00100050  63 6d 64 5f 75 65 6e 76  3b 20 72 75 6e 20 64 74  |cmd_uenv; run dt|
00100060  5f 62 6f 6f 74 63 6d 64  5f 75 73 62 3b 20 72 65  |_bootcmd_usb; re|
00100070  73 65 74 00 62 6f 6f 74  63 6d 64 5f 75 65 6e 76  |set.bootcmd_uenv|
00100080  3d 72 75 6e 20 75 65 6e  76 5f 6c 6f 61 64 3b 20  |=run uenv_load; |
00100090  69 66 20 74 65 73 74 20  24 75 65 6e 76 5f 6c 6f  |if test $uenv_lo|
001000a0  61 64 65 64 20 2d 65 71  20 31 3b 20 74 68 65 6e  |aded -eq 1; then|
001000b0  20 72 75 6e 20 75 65 6e  76 5f 69 6d 70 6f 72 74  | run uenv_import|

UPDATE 2:


Akitio stock spl

root@debian:~# nandwrite -p -s $((16#0)) /dev/mtd0 /mnt/Public/ubifs/nand/akitio-spl.bin
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000

stg-212 uboot

root@debian:~# nandwrite -p -s $((16#40000)) /dev/mtd0 /mnt/Public/archlinux/NAS7820-Tools-master/flash-recovery-hdd/MedionNAS/mtd2.backup
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000
Writing data to block 5 at offset 0xa0000
Writing data to block 6 at offset 0xc0000
Writing data to block 7 at offset 0xe0000
Writing data to block 8 at offset 0x100000
Writing data to block 9 at offset 0x120000
Writing data to block 10 at offset 0x140000
Writing data to block 11 at offset 0x160000
Writing data to block 12 at offset 0x180000
Writing data to block 13 at offset 0x1a0000
Writing data to block 14 at offset 0x1c0000
Writing data to block 15 at offset 0x1e0000
Writing data to block 16 at offset 0x200000
Writing data to block 17 at offset 0x220000
Writing data to block 18 at offset 0x240000
Writing data to block 19 at offset 0x260000
Writing data to block 20 at offset 0x280000
Writing data to block 21 at offset 0x2a0000
Writing data to block 22 at offset 0x2c0000
Writing data to block 23 at offset 0x2e0000
Writing data to block 24 at offset 0x300000
Writing data to block 25 at offset 0x320000
Writing data to block 26 at offset 0x340000
Writing data to block 27 at offset 0x360000
Writing data to block 28 at offset 0x380000
Writing data to block 29 at offset 0x3a0000
root@debian:~#



Edited 7 time(s). Last edit at 01/03/2024 02:14AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
January 03, 2024 02:06AM
Dear bodhi :

How can I find the source code of uboot.2015.10-tld-2.ox820.bin ?

I need to change saveenv area on the NAND, and compile new version uboot.

It really almost success to get better result, beside 700MHz to use...(akitio stock spl...)



Edited 1 time(s). Last edit at 01/03/2024 02:09AM by Popo.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: