Welcome! Log In Create A New Profile

Advanced

Possible to get Debian on a Medion NAS P89654 2x4 TB?

Posted by saschbaer 
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 18, 2017 07:41PM
This u-boot is old. So I revised a little bit further in the commands below.

Power up, interrupt serial console,
setenv mainlineLinux yes
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs earlyprintk=serial'
setenv usb_load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv usb_load_uinitrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
run set_bootargs
run usb_load_uimage
run usb_load_uinitrd
printenv bootargs
printenv
mw 0x800000 0 1
bootm 0x800000 0x1100000

Please post entire bootlog here.

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



Edited 1 time(s). Last edit at 11/18/2017 09:04PM by bodhi.
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 19, 2017 01:02AM
Here it goes...
         __  __                      _ _                                        
        |  \/  | __ _ _ ____   _____| | |                                       
        | |\/| |/ _` | '__\ \ / / _ \ | |                                       
        | |  | | (_| | |   \ V /  __/ | |                                       
        |_|  |_|\__,_|_|    \_/ \___|_|_|                                       
 _   _     ____              _                                                  
| | | |   | __ )  ___   ___ | |_                                                
| | | |___|  _ \ / _ \ / _ \| __|                                               
| |_| |___| |_) | (_) | (_) | |_                                                
 \___/    |____/ \___/ \___/ \__|                                               
 ** MARVELL BOARD: DB6702A-GMtech LE                                            
                                                                                
U-Boot 1.1.4 (Jun  5 2013 - 10:49:39) Marvell version: 3.6.0                    
                                                                                
U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00                             
                                                                                
Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz                       
SysClock = 400Mhz , TClock = 166Mhz                                             
                                                                                
DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6                            
DRAM CS[0] base 0x00000000   size 256MB                                         
DRAM Total size 256MB  16bit width                                              
Addresses 8M - 0M are saved for the U-Boot usage.                               
Mem malloc Initialization (8M - 7M): Done                                       
NAND:256 MB                                                                     
Flash:  0 kB                                                                    
                                                                                
CPU : Marvell Feroceon (Rev 1)                                                  
                                                                                
Streaming disabled                                                              
Write allocate disabled                                                         
                                                                                
                                                                                
USB 0: host mode                                                                
PEX 0: PCI Express Root Complex Interface                                       
PEX interface detected Link X1                                                  
Net:   egiga0 [PRIME]                                                           
Hit any key to stop autoboot:  0                                                
Marvell>> setenv mainlineLinux yes                                              
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL='
Marvell>> setenv usb_load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'       
Marvell>> setenv usb_load_uinitrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'    
Marvell>> run set_bootargs                                                      

I don't know if you missed that command so I added here:
Marvell>> usb start                                                             
(Re)start USB...                                                                
USB:   scanning bus for devices... 2 USB Device(s) found                        
Waiting for storage device(s) to settle before scanning...                      
1 Storage Device(s) found      

(without that command it goes directly to ## Booting image at 00800000 ...                                                
Bad Magic Number )

then                                                 
Marvell>> run usb_load_uimage                                                   
....                                                                            
.                                                                               
......                                                                          
............                                                                    
.........................                                                       
...................................................                             
................................................................................
................................................................................
                                                                                
3834884 bytes read                                                              
Marvell>> run usb_load_uinitrd                                                  
....                                                                            
.                                                                               
......                                                                          
............                                                                    
.........................                                                       
...................................................                             
................................................................................
................................................................................
....                                                                            
................................................................................
                                                                                
7245696 bytes read                           

Marvell>> printenv bootargs                                                     
bootargs=console=ttyS0,115200 root=LABEL=rootfs earlyprintk=serial   

Marvell>> printenv                                                              
baudrate=115200                                                                 
loads_echo=0                                                                    
serverip=10.4.52.7                                                              
run_diag=yes                                                                    
MALLOC_len=1                                                                    
ethprime=egiga0                                                                 
bootargs_end=:::DB88FXX81:eth0:none                                             
ethmtu=1500                                                                     
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo                             
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500                  
usb0Mode=host                                                                   
yuk_ethaddr=00:00:00:EE:51:81                                                   
nandEcc=1bit                                                                    
netretry=no                                                                     
rcvrip=169.254.100.100                                                          
loadaddr=0x02000000                                                             
autoload=no                                                                     
image_multi=yes                                                                 
ethact=egiga0                                                                   
console=console=ttyS0,115200                                                    
ethaddr=00:11:41:3C:59:24                                                       
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/;
bootargs_root=ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc    
bootcmd=nand read.e 0x800000 0x100000 0x400000; setenv bootargs $(console) $(bo0
rootpath=/tftpboot_tokyo/marvell_nfs                                            
bootfile=/pxelinux.0                                                            
gatewayip=192.168.178.1                                                         
netmask=255.255.255.0                                                           
ipaddr=192.168.178.250                                                          
image_name=uImage.medion                                                        
stdin=serial                                                                    
stdout=serial                                                                   
stderr=serial                                                                   
enaMonExt=no                                                                    
enaCpuStream=no                                                                 
enaWrAllo=no                                                                    
pexMode=RC                                                                      
disL2Cache=no                                                                   
setL2CacheWT=yes                                                                
disL2Prefetch=yes                                                               
enaICPref=yes                                                                   
enaDCPref=yes                                                                   
sata_dma_mode=yes                                                               
netbsd_en=no                                                                    
vxworks_en=no                                                                   
bootdelay=3                                                                     
disaMvPnp=no                                                                    
enaAutoRecovery=yes                                                             
pcieTune=no                                                                     
mainlineLinux=yes                                                               
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs earlyprintkl
usb_load_uimage=ext2load usb 0:1 0x800000 /boot/uImage                          
usb_load_uinitrd=ext2load usb 0:1 0x1100000 /boot/uInitrd                       
bootargs=console=ttyS0,115200 root=LABEL=rootfs earlyprintk=serial              
filesize=6E8F80                                                                 
                                                                                
Environment size: 1540/131068 bytes   

Marvell>> mw 0x800000 0 1                                                       
Marvell>> bootm 0x800000 0x1100000                                              
## Booting image at 00800000 ...                                                
Bad Magic Number             

Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 19, 2017 03:55AM
saschbaer,

You're right! I missed that usb start command. And the mw command was out of order!

Please try again

setenv mainlineLinux yes
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs earlyprintk=serial'
setenv usb_load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv usb_load_uinitrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
run set_bootargs
printenv bootargs
printenv
usb start
mw 0x800000 0 1
run usb_load_uimage
run usb_load_uinitrd
bootm 0x800000 0x1100000

The above envs setting is to see some log when the kernel starts (by parameter earlyprintk=serial).

Please post entire bootlog here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 19, 2017 04:07AM
here it goes...

Marvell>> setenv mainlineLinux yes                                              
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL='
Marvell>> setenv usb_load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'       
Marvell>> setenv usb_load_uinitrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'    
Marvell>> run set_bootargs                                                      
Marvell>> printenv bootargs                                                     
bootargs=console=ttyS0,115200 root=LABEL=rootfs earlyprintk=serial              
Marvell>> printenv                                                              
baudrate=115200                                                                 
loads_echo=0                                                                    
serverip=10.4.52.7                                                              
run_diag=yes                                                                    
MALLOC_len=1                                                                    
ethprime=egiga0                                                                 
bootargs_end=:::DB88FXX81:eth0:none                                             
ethmtu=1500                                                                     
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo                             
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500                  
usb0Mode=host                                                                   
yuk_ethaddr=00:00:00:EE:51:81                                                   
nandEcc=1bit                                                                    
netretry=no                                                                     
rcvrip=169.254.100.100                                                          
loadaddr=0x02000000                                                             
autoload=no                                                                     
image_multi=yes                                                                 
ethact=egiga0                                                                   
console=console=ttyS0,115200                                                    
ethaddr=00:11:41:3C:59:24                                                       
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/;
bootargs_root=ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc    
bootcmd=nand read.e 0x800000 0x100000 0x400000; setenv bootargs $(console) $(bo0
rootpath=/tftpboot_tokyo/marvell_nfs                                            
bootfile=/pxelinux.0                                                            
gatewayip=192.168.178.1                                                         
netmask=255.255.255.0                                                           
ipaddr=192.168.178.250                                                          
image_name=uImage.medion                                                        
stdin=serial                                                                    
stdout=serial                                                                   
stderr=serial                                                                   
enaMonExt=no                                                                    
enaCpuStream=no                                                                 
enaWrAllo=no                                                                    
pexMode=RC                                                                      
disL2Cache=no                                                                   
setL2CacheWT=yes                                                                
disL2Prefetch=yes                                                               
enaICPref=yes                                                                   
enaDCPref=yes                                                                   
sata_dma_mode=yes                                                               
netbsd_en=no                                                                    
vxworks_en=no                                                                   
bootdelay=3                                                                     
disaMvPnp=no                                                                    
enaAutoRecovery=yes                                                             
pcieTune=no                                                                     
mainlineLinux=yes                                                               
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs earlyprintkl
usb_load_uimage=ext2load usb 0:1 0x800000 /boot/uImage                          
usb_load_uinitrd=ext2load usb 0:1 0x1100000 /boot/uInitrd                       
bootargs=console=ttyS0,115200 root=LABEL=rootfs earlyprintk=serial              
                                                                                
Environment size: 1524/131068 bytes                                             
Marvell>> usb start                                                             
(Re)start USB...                                                                
USB:   scanning bus for devices... 2 USB Device(s) found                        
Waiting for storage device(s) to settle before scanning...                      
1 Storage Device(s) found                                                       
Marvell>> mw 0x800000 0 1                                                       
Marvell>> run usb_load_uimage                                                   
....                                                                            
.                                                                               
......                                                                          
............                                                                    
.........................                                                       
...................................................                             
................................................................................
................................................................................
                                                                                
3834884 bytes read                                                              
Marvell>> run usb_load_uinitrd                                                  
....                                                                            
.                                                                               
......                                                                          
............                                                                    
.........................                                                       
...................................................                             
................................................................................
................................................................................
....                                                                            
................................................................................
                                                                                
7245696 bytes read                                                              
Marvell>> bootm 0x800000 0x1100000                                              
## Booting image at 00800000 ...                                                
   Image Name:   Linux-4.12.1-kirkwood-tld-1                                    
   Created:      2017-11-18  13:59:37 UTC                                       
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    3834820 Bytes =  3.7 MB                                        
   Load Address: 00008000                                                       
   Entry Point:  00008000                                                       
   Verifying Checksum ... OK                                                    
OK                                                                              
## Loading Ramdisk Image at 01100000 ...                                        
   Image Name:   initramfs-4.12.1-kirkwood-tld-1                                
   Created:      2017-07-24   0:18:23 UTC                                       
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)                      
   Data Size:    7245632 Bytes =  6.9 MB                                        
   Load Address: 00000000                                                       
   Entry Point:  00000000                                                       
   Verifying Checksum ... OK                                                    
                                                                                
Starting kernel ...
and nothing more...
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 19, 2017 04:52AM
saschbaer,

If it stops at that point, then either we are missing something, or the uImage is bad.

1. Can you list the envs again (the envs in your post was cutoff on the right side).

2. Check your rootfs, see if the kernel files are OK. Mount it on another LInux box and assuming it is mounted at /media/sdb1

ls -l /media/sdb1
ls -latr /media/sdb1/boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 19, 2017 04:59AM
the files are ok:

insgesamt 192032
drwxr-xr-x  2 root root      4096 Jul 24 02:12 bin
drwxr-xr-x  3 root root      4096 Nov 18 14:59 boot
-rw-r--r--  1 root root 196352036 Nov 12 12:25 Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
drwxr-xr-x  5 root root      4096 Feb 24  2012 dev
drwxr-xr-x 57 root root      4096 Nov 18 14:54 etc
drwxr-xr-x  2 root root      4096 Jan 22  2012 home
drwxr-xr-x 14 root root      4096 Jul 20 10:55 lib
drwx------  2 root root     16384 Feb 24  2012 lost+found
drwxr-xr-x  2 root root      4096 Feb 24  2012 media
drwxr-xr-x  2 root root      4096 Feb 10  2015 mnt
drwxr-xr-x  2 root root      4096 Feb 24  2012 opt
drwxr-xr-x  2 root root      4096 Jan 22  2012 proc
drwx------  5 root root      4096 Jul 24 03:49 root
drwxr-xr-x  2 root root      4096 Feb  8  2013 run
drwxr-xr-x  2 root root      4096 Jul 24 02:12 sbin
drwxr-xr-x  2 root root      4096 Feb 24  2012 srv
drwxr-xr-x  2 root root      4096 Jan  1  2011 sys
drwxrwxrwt  2 root root      4096 Jan  1  1970 tmp
drwxr-xr-x 10 root root      4096 Feb 24  2012 usr
drwxr-xr-x 11 root root      4096 Jan  1  1970 var


/boot
insgesamt 43764
drwxr-xr-x 21 root root    4096 Feb 17  2015 ..
drwxr-xr-x  2 root root    4096 Jul 16 00:14 dts
-rw-r--r--  1 root root  153501 Jul 16 05:21 config-4.12.1-kirkwood-tld-1
-rwxr-xr-x  1 root root 3821528 Jul 16 06:42 zImage-4.12.1-kirkwood-tld-1
-rw-------  1 root root 3821528 Jul 16 09:43 vmlinuz-4.12.1-kirkwood-tld-1
-rw-------  1 root root 2504031 Jul 16 09:43 System.map-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root 8435004 Jul 16 10:06 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root 3821592 Jul 20 10:11 uImage.orig
-rw-r--r--  1 root root 7245632 Jul 24 02:15 initrd.img-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root 7245696 Jul 24 02:18 uInitrd
-rwxr-xr-x  1 root root 3834820 Nov 18 14:59 zImage.fdt
drwxr-xr-x  3 root root    4096 Nov 18 14:59 .
-rw-r--r--  1 root root 3834884 Nov 18 14:59 uImage

Here are the envs

Marvell>> printenv                                                              
baudrate=115200
loads_echo=0
serverip=10.4.52.7
run_diag=yes
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
console=console=ttyS0,115200
ethaddr=00:11:41:3C:59:24
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
bootargs_root=ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc                                                                                                                                           
bootargs=console=ttyS0,115200 ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc                                                                                                                           
bootcmd=nand read.e 0x800000 0x100000 0x400000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000                                                                                                            
rootpath=/tftpboot_tokyo/marvell_nfs                                                                                                                                                                                   
bootfile=/pxelinux.0                                                                                                                                                                                                   
gatewayip=192.168.178.1                                                                                                                                                                                                
netmask=255.255.255.0                                                                                                                                                                                                  
ipaddr=192.168.178.250                                                                                                                                                                                                 
image_name=uImage.medion                                                                                                                                                                                               
stdin=serial                                                                                                                                                                                                           
stdout=serial                                                                                                                                                                                                          
stderr=serial                                                                                                                                                                                                          
mainlineLinux=no                                                                                                                                                                                                       
enaMonExt=no                                                                                                                                                                                                           
enaCpuStream=no                                                                                                                                                                                                        
enaWrAllo=no                                                                                                                                                                                                           
pexMode=RC                                                                                                                                                                                                             
disL2Cache=no                                                                                                                                                                                                          
setL2CacheWT=yes                                                                                                                                                                                                       
disL2Prefetch=yes                                                                                                                                                                                                      
enaICPref=yes                                                                                                                                                                                                          
enaDCPref=yes                                                                                                                                                                                                          
sata_dma_mode=yes                                                                                                                                                                                                      
netbsd_en=no                                                                                                                                                                                                           
vxworks_en=no                                                                                                                                                                                                          
bootdelay=3                                                                                                                                                                                                            
disaMvPnp=no                                                                                                                                                                                                           
enaAutoRecovery=yes                                                                                                                                                                                                    
pcieTune=no                                                                                                                                                                                                            
                                                                                                                                                                                                                       
Environment size: 1349/131068 bytes



Edited 1 time(s). Last edit at 11/19/2017 05:04AM by saschbaer.
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 19, 2017 05:39AM
This file has a different timestamp from the real orginial (why ?), but the file size looks OK.

-rw-r--r--  1 root root 3821592 Jul 20 10:11 uImage.orig

Can you post the log of how you created the new uImage?


In the mean time, let's try these to see if we can even start the kernel. And worry about uInitrd later.

setenv mainlineLinux yes
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv usb_load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
run set_bootargs
printenv bootargs
usb start
mw 0x800000 0 1
run usb_load_uimage
bootm 0x800000

If it does not start, perhaps we need to look at helge posts to see if anything missing.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 19, 2017 10:50AM
I'm sorry...
still the same
setenv mainlineLinux yes
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Marvell>> setenv usb_load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> run set_bootargs
Marvell>> printenv bootargs
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
Marvell>> usb start
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
Marvell>> mw 0x800000 0 1
Marvell>> run usb_load_uimage
....
.
......
............
.........................
...................................................
......................................................................................................
.........................................................................................................................................................................

3834884 bytes read
Marvell>> bootm 0x800000                                                                                                                                                                                               
## Booting image at 00800000 ...                                                                                                                                                                                       
   Image Name:   Linux-4.12.1-kirkwood-tld-1                                                                                                                                                                           
   Created:      2017-11-18  13:59:37 UTC                                                                                                                                                                              
   Image Type:   ARM Linux Kernel Image (uncompressed)                                                                                                                                                                 
   Data Size:    3834820 Bytes =  3.7 MB                                                                                                                                                                               
   Load Address: 00008000                                                                                                                                                                                              
   Entry Point:  00008000                                                                                                                                                                                              
   Verifying Checksum ... OK                                                                                                                                                                                           
OK                                                                                                                                                                                                                     
                                                                                                                                                                                                                       
Starting kernel ...

I prepared the stick as followed:
under root:
cp -a zImage-4.12.1-kirkwood-tld-1  zImage.fdt
cat dts/kirkwood-nsa320s.dtb  >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt  uImage
sync
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 19, 2017 04:59PM
saschbaer,

I suspect the uImage is bad. Did you create the rootfs on Ubuntu PC/laptop?


> I prepared the stick as followed:
> under root:
>
> cp -a zImage-4.12.1-kirkwood-tld-1  zImage.fdt
> cat dts/kirkwood-nsa320s.dtb  >> zImage.fdt
> mv uImage uImage.orig
> mkimage -A arm -O linux -T kernel -C none -a
> 0x00008000 -e 0x00008000 -n
> Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt  uImage
> sync
>

Could you redo this rootfs and post the exact log of what you did here? (copy/paste the terminal session)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 20, 2017 10:40AM
Here it is

root@SaschSamsung:/media/saschbaer/rootfs/boot# cd /mnt/sdd1/boot
root@SaschSamsung:/mnt/sdd1/boot# ls
config-4.12.1-kirkwood-tld-1                       System.map-4.12.1-kirkwood-tld-1  vmlinuz-4.12.1-kirkwood-tld-1
dts                                                uImage                            zImage-4.12.1-kirkwood-tld-1
initrd.img-4.12.1-kirkwood-tld-1                   uImage.orig                       zImage.fdt
linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb  uInitrd
root@SaschSamsung:/mnt/sdd1/boot# rm zImage.fdt
root@SaschSamsung:/mnt/sdd1/boot# cp -a zImage-4.12.1-kirkwood-tld-1  zImage.fdt -v
'zImage-4.12.1-kirkwood-tld-1' -> 'zImage.fdt'
root@SaschSamsung:/mnt/sdd1/boot# cat dts/kirkwood-nsa320s.dtb  >> zImage.fdt -v
root@SaschSamsung:/mnt/sdd1/boot# rm uImage
root@SaschSamsung:/mnt/sdd1/boot# cp uImage.orig uImage -v
'uImage.orig' -> 'uImage'
root@SaschSamsung:/mnt/sdd1/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt  uImage -v
Usage: mkimage -l image
          -l ==> list image header information
       mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image
          -A ==> set architecture to 'arch'
          -O ==> set operating system to 'os'
          -T ==> set image type to 'type'
          -C ==> set compression type 'comp'
          -a ==> set load address to 'addr' (hex)
          -e ==> set entry point to 'ep' (hex)
          -n ==> set image name to 'name'
          -d ==> use image data from 'datafile'
          -x ==> set XIP (execute in place)
       mkimage [-D dtc_options] [-f fit-image.its|-F] fit-image
          -D => set all options for device tree compiler
          -f => input filename for FIT source
Signing / verified boot not supported (CONFIG_FIT_SIGNATURE undefined)
       mkimage -V ==> print version information and exit
Use -T to see a list of available image types
root@SaschSamsung:/mnt/sdd1/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt  uImage 
Image Name:   Linux-4.12.1-kirkwood-tld-1
Created:      Mon Nov 20 17:37:30 2017
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    3844115 Bytes = 3754.02 kB = 3.67 MB
Load Address: 00008000
Entry Point:  00008000
root@SaschSamsung:/mnt/sdd1/boot# sync -v
sync: Ungültige Option -- v
„sync --help“ liefert weitere Informationen.
root@SaschSamsung:/mnt/sdd1/boot# sync
root@SaschSamsung:/mnt/sdd1/boot# sync
root@SaschSamsung:/mnt/sdd1/boot# sync

Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 20, 2017 04:26PM
saschbaer,

Ok. Let's try a different stock load address.

setenv mainlineLinux yes
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv usb_load_uimage 'ext2load usb 0:1 0x02000000 /boot/uImage'
run set_bootargs
printenv bootargs
usb start
run usb_load_uimage
bootm 0x02000000

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 21, 2017 12:52PM
Nada...

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: DB6702A-GMtech LE 

U-Boot 1.1.4 (Jun  5 2013 - 10:49:39) Marvell version: 3.6.0

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00                                                                                                                                                                    
                                                                                                                                                                                                                       
Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz                                                                                                                                                              
SysClock = 400Mhz , TClock = 166Mhz                                                                                                                                                                                    
                                                                                                                                                                                                                       
DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6                                                                                                                                                                   
DRAM CS[0] base 0x00000000   size 256MB                                                                                                                                                                                
DRAM Total size 256MB  16bit width                                                                                                                                                                                     
Addresses 8M - 0M are saved for the U-Boot usage.                                                                                                                                                                      
Mem malloc Initialization (8M - 7M): Done                                                                                                                                                                              
NAND:256 MB                                                                                                                                                                                                            
Flash:  0 kB                                                                                                                                                                                                           
                                                                                                                                                                                                                       
CPU : Marvell Feroceon (Rev 1)                                                                                                                                                                                         
                                                                                                                                                                                                                       
Streaming disabled                                                                                                                                                                                                     
Write allocate disabled                                                                                                                                                                                                
                                                                                                                                                                                                                       
                                                                                                                                                                                                                       
USB 0: host mode                                                                                                                                                                                                       
PEX 0: interface detected no Link.                                                                                                                                                                                     
Net:   egiga0 [PRIME]                                                                                                                                                                                                  
Hit any key to stop autoboot:  0                                                                                                                                                                                       
Marvell>> setenv mainlineLinux yes                                                                                                                                                                                     
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'                                                                                                 
Marvell>> setenv usb_load_uimage 'ext2load usb 0:1 0x02000000 /boot/uImage'                                                                                                                                            
Marvell>> run set_bootargs                                                                                                                                                                                             
Marvell>> printenv bootargs                                                                                                                                                                                            
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial                                                                                                                                        
Marvell>> usb start                                                                                                                                                                                                    
(Re)start USB...                                                                                                                                                                                                       
USB:   scanning bus for devices... 2 USB Device(s) found                                                                                                                                                               
Waiting for storage device(s) to settle before scanning...                                                                                                                                                             
1 Storage Device(s) found                                                                                                                                                                                              
Marvell>> run usb_load_uimage                                                                                                                                                                                          
....                                                                                                                                                                                                                   
.                                                                                                                                                                                                                      
......                                                                                                                                                                                                                 
............                                                                                                                                                                                                           
.........................                                                                                                                                                                                              
...................................................                                                                                                                                                                    
......................................................................................................                                                                                                                 
..........................................................................................................................................................................                                             
                                                                                                                                                                                                                       
3844179 bytes read                                                                                                                                                                                                     
Marvell>> bootm 0x02000000                                                                                                                                                                                             
## Booting image at 02000000 ...                                                                                                                                                                                       
   Image Name:   Linux-4.12.1-kirkwood-tld-1                                                                                                                                                                           
   Created:      2017-11-20  16:37:30 UTC                                                                                                                                                                              
   Image Type:   ARM Linux Kernel Image (uncompressed)                                                                                                                                                                 
   Data Size:    3844115 Bytes =  3.7 MB                                                                                                                                                                               
   Load Address: 00008000                                                                                                                                                                                              
   Entry Point:  00008000                                                                                                                                                                                              
   Verifying Checksum ... OK                                                                                                                                                                                           
OK                                                                                                                                                                                                                     
                                                                                                                                                                                                                       
Starting kernel ...     
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 21, 2017 04:25PM
saschbaer,

It is strange that earlyprintk did not give us any output, this could only be the uImage itself is bad, or the load address is wrong for this u-boot. However, I know that helge used 0x800000 and booted OK.

It's time to read helge posts and see if what helge done was different from what you have done.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
November 21, 2017 11:40PM
so it has nothing to do with the nsa320.dts file?
i thought maybe changing it to the pogo v4 as you said it could only be a 310s 320s or pogov4.
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
December 14, 2017 06:40AM
it's not the uImage...
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
December 14, 2017 07:18AM
So where can I investigate next if its not the image?
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
December 14, 2017 08:14AM
saschbaer Wrote:
-------------------------------------------------------
> so it has nothing to do with the nsa320.dts file?
> i thought maybe changing it to the pogo v4 as you
> said it could only be a 310s 320s or pogov4.

It is not because of the DTS. If it were, the kernel would have started, and then panic out.

I can't see what this stock u-boot does without the GPL source for it. If the GPL source for u-boot is available then it will become easy for me to help. So that's something you should look for.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Possible to get Debian on a Medion NAS P89654 2x4 TB?
January 24, 2018 06:18PM
bodhi Wrote:
-------------------------------------------------------
> It's time to read helge posts and see if what
> helge done was different from what you have done.

My Medion NAS never booted with any but stock kernel ;) We got stuck at the exact same point...
He may run into the same problems, because he has the exact same board as Medion MD86783. But Medion didn't even released GPL for his version (atleast i couldn't find any). The GPL i found for my device didn't contain uboot code
------
maybe this mtdparts help i stripped from fw update ?
mtdparts=spi_flash:0x100000@0x0(uboot)ro,0x200000@0x100000(uimage),0xb80000@0x300000(rootfs),0x180000@0xe80000(varfs),0xf00000@0x100000(flash)

Maybe helpfull too:
https://github.com/michaelkebe/u-boot-medion-p89626



Edited 3 time(s). Last edit at 01/24/2018 08:10PM by helge.
Author:

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: