Quantcast
Channel: Linux Device Hacking - Debian
Viewing all 26605 articles
Browse latest View live

Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ

$
0
0
Hi,

You haven't appended the dtb to the image, make sure you follow all steps of '4b' in Bodhi's instructions.

Here are the commands;

cd /boot
mv uImage uImage.orig
cp -a zImage-5.1.11-kirkwood-tld-2  zImage.fdt
cat dts/kirkwood-lenovo-iomega-ez.dtb  >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.1.11-kirkwood-tld-2 -d zImage.fdt  uImage

The write the kernel and initrd to the drive;
dd if=uImage of=/dev/sda bs=1MiB seek=10
dd if=uInitrd of=/dev/sda bs=1MiB seek=20

Iomega Ix4-200d - Does not load and neither read the USB to reset

$
0
0
Hi All,

I believe I installed the firmware to Cloud Edition into the Iomega Ix4 200d, but NAS is not CE. I believe it is now bricked.

I now downloaded the right firmware, put it into emctools folder into the USB Fat32 formatted.

USB put into the NAS, power on, reset button pressed, and looks like it does not even read the USB, or the reset button is not recognized.

NAS keep botting up continuously.

Please, anybody had this problem or similar, and found the solution ?

Thanks in advance.
ldur.

Re: Iomega Ix4-200d - Does not load and neither read the USB to reset

$
0
0
It’s pretty hard to brick a Kirkwood box, connect a serial console and watch it boot.

Post the serial log and I will have a look.

Though this forum is about replacing stock , not fixing it.

Need help with Lenovo ix2-ng

$
0
0
Hello, I have recently received a Lenovo ix2-ng NAS in order to make from it a DLNA server for Tv Shows and Movies. Using the stock firmware that has a version of Twonky it is unable to load the subtitle file.
Thus through my research of alternatives to the stock firmware I have reached to your forum.
Currently I am having issues with booting Debian from a usb stick due to a uboot read error.

Commands done to create the usb stick on an Ubuntu environment:
0. sudo su => All commands were run under root@AlDaniel
1. Used gparted to format the usb stick with ext2 and the name rootfs
2. mount /dev/sdg1 /media/sdb1/
3. cd /media/sdb1/
4. tar -xjf Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
5. cd etc/
6. vi fstab
7. Modified fstab by changing ext3 to ext2
8. cd ..
9. cd boot/
10. cp -a zImage-4.12.1-kirkwood-tld-1  zImage.fdt
11. cat dts/kirkwood-lenovo-ix2-ng.dtb  >> zImage.fdt
12. mv uImage uImage.orig
13. 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
14. sync
15. cd /home/
16. umount /media/sdb1/

Commands done to Marvell Uboot via GtkTerm:
setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000 (env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000 (boot),1024m@0x0(flash) earlyprintk=serial'
setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
setenv bootcmd 'run usb_boot'
setenv usb_root 'LABEL=rootfs'
setenv rootdelay 10
boot

GtkTerm output after boot:
(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
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T Device NOT ready
   Request Sense returned 00 00 00
T T T T T T T T T T T T T T T T T T T T T T Device NOT ready
   Request Sense returned 00 00 00
 ** ext2fs_devread() read error **

** Unable to read "/boot/uImage" from usb 0:1 **
T T T T T T T T T T T T T T T T T T T T T T Device NOT ready
   Request Sense returned 00 00 00
** Can't read partition table on 0:0 **
** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number

Marvell Uboot printenv after powercycle:

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** ix2-spi ** ** uboot_ver:0.0.8 **

 ** MARVELL BOARD: DB-88F6282A-BP LE 

U-Boot 1.1.4 (Oct 28 2011 - 15:18:22) Marvell version: 3.6.1 - EMC

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CD5A0

Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 800Mhz
SysClock = 533Mhz , TClock = 200Mhz 

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
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
Found ADT7473, program PWM1 ... OK
[1024kB@f8000000] Flash:  1 MB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: WDC WD800JD-75MSA3                       Firm: 10.01E04 Ser#:      WD-WMAM9AM21410
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76293.9 MB = 74.5 GB (156250000 x 512)
[0 1 0]: Enable DMA mode (6)
  Device 1 @ 0 1:
Model: WDC WD800JD-75MSA3                       Firm: 10.01E04 Ser#:      WD-WMAM9SV29648
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76292.9 MB = 74.5 GB (156247887 x 512)


CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
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
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
console=console=ttyS0,115200
bootargs_root=root=/dev/ram0
bootargs_mtd=mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
kernelimage=zImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
mfgmodel=ix2
preroot_ver=0.0.2
fw_ver=0.0.2
uboot_ver=0.0.8
serial_number=5563Y01001G216000A7J0A1
ethaddr=00:D0:B8:1D:BA:D2
serialNo=EUAC1800AV
modelname=31997200
serialno=0,01nrdpRPKLbEh/6nvg5IwLGlVkRu2Q85Gft0N3lR2L2oy1d5RAQiGOzlMCx+zlwdFt,EUAC1800AV,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.0.3/download_runin.sh
pre_path_conf=IX2/1.0.3/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.0.3
serverip=192.168.32.4
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; bootm 0x40000 0x900000;
bootcmd=setenv bootargs console=ttyS0,115200n8 root=/dev/sda1; usb start; ext2load usb 0:1 0x00800000 /uImage; bootm 0x00800000
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
pcieTune1=no

Environment size: 1909/4091 bytes

Re: Iomega Ix4-200d - Does not load and neither read the USB to reset

$
0
0
You need to use the recovery software provided by lenovo technical support in order to create a recovery usb.
Here is an archive with it:
Lenovo ix recovery kit

The app will format the usb and put required files for some version of ix.
Afterwards you put your firmware (imager.tgz) in the root folder of the usb and also in the emctools (Both locations because I do not remember from where it recognizes it) and do the same procedure as you did with the reset button and it should recover the firmware.

Re: Need help with Lenovo ix2-ng

Re: Debian on Synology RS816 (Armada 385)

$
0
0
@bodhi

I have been bribed to forego my long term leave and am back in my office.

I am under some pressure to get the RS816 back into service for a project and the whereabouts of the second unit is still unknown, I know you were also holidaying but I wasn't sure of your return date ?

If it works for you and we can get to the tutorials before our agreed mid August date that would help me a lot.

Richard

Re: Iomega Ix4-200d - Does not load and neither read the USB to reset

$
0
0
ldur,

Do what AlDaniel said to restore stock. And then if you want to install Debian, come back here more more helps.

Re: Need help with Lenovo ix2-ng

$
0
0
AlDaniel,

Quote

(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
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T Device NOT ready
Request Sense returned 00 00 00
T T T T T T T T T T T T T T T T T T T T T T Device NOT ready
Request Sense returned 00 00 00

This is a hardware problem. If there are more than 1 USB port on this box, try the other USB port. If not, try using a diffrent USB thumb drive. I'd prefer Sandisk brand (most reliable for booting).

Re: Debian on Synology RS816 (Armada 385)

$
0
0
Richard,

I will be back before the 12th. If you are pressed for time with the 2nd unit for works, then please go ahead install it. Works is always more much important than what we do here :)

We'll do the tutorial whenever it is convenient, sometime in next month. Even though we won't have a stock unit to test, it should be doable.

Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ

$
0
0
I follow this step if you see the code sequence in my post but at boot the verification failed

NAS326 does not boot reliably

$
0
0
Hi all,
I'm running Debian 9.9 with kernel 4.19.1-mvebu-tld-1 on my NAS326 box and I am very happy with it,
excluding one problem: The box does not boot reliably. Every second (or third, I was not able to figure it out clearly) time I shutdown the box with
shutdown -h now
and try to boot the box again, the box remains in a state where it is not reachable through samba/ssh/etc.
While in this state, all three front leds are shining continuosly.
When I "switch off" the box by removing the power plug and booting up again, it works.
Attached are my u-boot envs. Unfortunately I do not have a serial interface available.
Anybody out there experiencing a similar problem?

Michael

Re: Need help with Lenovo ix2-ng

$
0
0
Changed the usb thumb drive and it works perfectly now. Thanks a lot guys.

Re: NAS326 does not boot reliably

$
0
0
Michael,

It is best that you have serial console to fix this problem.

Warning: If what I suggest below does not work, and the box reboot to stock, you might need serial console to troubleshoot. So do not attempt if you don't have serial console or don't plan to connect one.

Login into Debian.

Make sure to doublecheck the following envs are set like:

curr_bootfrom=1
next_bootfrom=1
kernel_addr_1=0x00000000; run bootcmd_custom;


And set this env

fw_setenv change_boot_part 0

And reboot.

shutdown -r now


================


And if the box happens to boot into stock consistently afterward, reset envs like in the installation instruction step 4

4. Enter the following commands (copy/paste each line to the stock OS command line). 

fw_setenv curr_bootfrom 1
fw_setenv next_bootfrom 1
fw_setenv load_dtb_addr 0x1000000
fw_setenv load_initrd_addr 0x2900000
fw_setenv load_image_addr 0x02000000
fw_setenv usb_init 'mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start'
fw_setenv set_bootargs_stock 'setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"'
fw_setenv bootcmd_stock_1 'run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000'
fw_setenv bootcmd_stock_2 'run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000'
fw_setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
fw_setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr'
fw_setenv bootcmd_custom 'if run usb_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi'
fw_setenv kernel_addr_1 '0x00000000; run bootcmd_custom; '
fw_setenv change_boot_part 1

Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ

$
0
0
Ok, then the kernel is too large for the load command you are using in uboot.

Again, boot from USB, you will have a much easier time.

Re: Need help with Lenovo ix2-ng

Re: Debian on Synology RS816 (Armada 385)

$
0
0
@bodhi

Thanks for the update on your holiday movements and trust you are having a great break :)

I think you may have missed from my post that at this time I only have one unit, the other went missing from my desk on the first week of my holiday and no one knows where it went.

It now looks like I will need to press the unit back into service prior to your return and once deployed it may be a few months before I could release it back for the tutorials. On a more positive note this unit is stock and will be left like that for the project it is going to be used for and hence will be stock for the tutorials.

One possibility I could offer to undertake would be to do the tutorial steps alone documenting each command and output then PM those to you or just place in a clean thread for you to check and compile into the final tutorials on your return. I think I have gleaned enough knowledge to do this and where my memory is foggy I can refer to the existing thread. It would be better if we did this together, in my view, but in the circumstances maybe its an acceptable way forward ?

Re: Debian on Synology RS816 (Armada 385)

$
0
0
Richard,

> One possibility I could offer to undertake would
> be to do the tutorial steps alone documenting each
> command and output then PM those to you or just
> place in a clean thread for you to check and
> compile into the final tutorials on your return. I
> think I have gleaned enough knowledge to do this
> and where my memory is foggy I can refer to the
> existing thread. It would be better if we did this
> together, in my view, but in the circumstances
> maybe its an acceptable way forward ?

Sure, please go ahead and send me PM.

Re: Debian on Synology RS816 (Armada 385)

$
0
0
@bodhi

I will try to get this done over the weekend but I have just downloaded linux-5.1.7-mvebu-tld-1 and note from the config file that raid1 is compiled as a module.

CONFIG_MD_RAID1=m

This will not work for the raid installation with zImage in flash we need raid1 built in to bring the rootfs up.

We could use my kernel then sed the appropriate changes for the tutorial or skip the raid installation and just do the zImage to flash and raw hdd on a single disk using your linux-5.1.7-mvebu-tld-1 ?

Re: Debian on Synology RS816 (Armada 385)

$
0
0
Richard,

I have built and tested 5.1.11-mvebu-tld-1, which will provide built-in kernel modules for RAID and LVM. But I have not released it.

Quote

- Enable RAID and LVM as kernel builtin modules (we can boot with RAID or LVM without needing to load uInitrd first. In previous kernel version RAID and LVM drivers were loadable modules).

You can assume that it will be in the Debian Buster rootfs Debian-5.1.11-mvebu-tld-1-rootfs-bodhi.tar.bz2.
Viewing all 26605 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>