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

Re: Adding netconsole support to kernel NOT from the pogoplug

$
0
0
Shai Ayal,

What's your U-Boot envs look like? pls interrupt netconsole at boot and execute
printenv
and post output here.

Re: Adding netconsole support to kernel NOT from the pogoplug

$
0
0
printenv 
arcNumber=2097
baudrate=115200
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
bootdelay=10
console=netconsole=6666@/eth0,6666@/
ethact=egiga0
ethaddr=00:25:31:00:4A:FA
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
if_netconsole=ping $serverip
ipaddr=192.168.221.221
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
ncip=192.168.221.148
partition=nand0,2
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
preboot=run if_netconsole start_netconsole
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
serverip=192.168.221.148
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_device=0:1
usb_init=run usb_scan; setenv usb_root LABEL=ROOTFS
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext2
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=1:3 dev=sdb3
usb_scan_list=1 2 3 4
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params

Environment size: 2653/131068 bytes

Re: Adding netconsole support to kernel NOT from the pogoplug

$
0
0
Shai Ayal,

Your U-Boot envs look normal. I don't see why the rootfs should not boot. The only thing to do is to re-examine the steps you did to create the rootfs, as root user, sync,….

And if you can connect with SSH then then login is root/ceadmin. But you can also re-enable SSH at the website and change the user/password there.

Re: Adding netconsole support to kernel NOT from the pogoplug

$
0
0
At this stage it looks to me like a strange problem with USB which uBoot can somehow overcome (since netconsole shows that it loads the kernel and uInitrd from USB), but the linux kernel cannot.

I want to stress again that thios system was working a few days ago, and I verfied (using a backup that I have) that the original kernel and inird files are intact and the same, so to me it is almost certain this is a hardware problem.

As to the original pogo firmware, I can connect to ssh, but it does not accept root/ceadmin, and when I go to the website I'm not entirly sure they can see my plug. I do not have the option to change password, and the website does not recognize any external disks I connect....

So it looks like I'm stuck ...

If you have any other ideas, let me know

Thanks for your help
Shai

Re: Adding netconsole support to kernel NOT from the pogoplug

$
0
0
Shai,

I would do this:

- Get a reliable brand USB stick such as Sandisk. Format it as Ext3, extract my rootfs to it, following the instruction. And try booting with that.

- If that fails, then get a serial console. With serial console, it's quite easy to solve any booting problem. Consider it's an opportunity of get this going! For Pogo E02, it's really easy, no soldering needed. See this thread for parts:
http://forum.doozan.com/read.php?8,13263

I think most likely it is the USB stick. It does not hurt to try.

Re: Adding netconsole support to kernel NOT from the pogoplug

$
0
0
I still don;t think it's USB stick problem -- i tried 2 usb sticks (same brand though). I have an external USB hdd -- I'll try that as well

As for the serial connection -- I think I'll do that -- it's time to do some hardware tinkering! that will take me some time though.

I'll report my findings

Thanks,
Shai

Heartbleed

$
0
0
Anyone know when Debian (and in particular, Debian ARM) will be pushing the fixes for the openssl Heartbleed bug? (Or am I missing something?)

Re: Heartbleed

$
0
0
restamp,

They did. Do apt-get ugrade and check:

dpkg -l | grep -i openssl
ii  libcurl3:armel                         7.26.0-1+wheezy8              armel        easy-to-use client-side URL transfer library (OpenSSL flavour)
ii  libcurl4-openssl-dev                   7.26.0-1+wheezy8              armel        development files and documentation for libcurl (OpenSSL flavour)
ii  libgnutls-openssl27:armel              2.12.20-8+deb7u1              armel        GNU TLS library - OpenSSL wrapper
ii  openssl                                1.0.1e-2+deb7u6               armel        Secure Socket Layer (SSL) binary and related cryptographic tools
ii  python-openssl                         0.13-2+deb7u1                 armel        Python 2 wrapper around the OpenSSL library
ii  ssl-cert

1.0.1e-2+deb7u6 is the new version that has the fix.

Zyxel NSA-320 or 320S for Debian ? (and Open Media Vault)

$
0
0
Hi!
I want to buy NAS for home, and install Debian on it (for extending capabilities), I'm a programmer (c/c++ once, now java) so I guess I can handle it :)
I want cheap box for a start (maybe HP Microserver in the future) so I'm thinking about Zyxel NSA-320 or NSA-320S (it's hard to get 320 now).
Which one is better? I see that 320S has only 256MB of RAM, is it enough for Debian and OMV ? or should I look at 320 (it has 512MB)

Re: Heartbleed

$
0
0
Hmm. I'm still sitting at 1.0.1e-2+deb7u4 after an "apt-get update; apt-get upgrade" (which did nothing). What are you using as the repositories bodhi?

Re: Heartbleed

$
0
0
OK, after a bit of investigation, I changed my /etc/apt/sources.list from:
deb http://ftp.us.debian.org/debian wheezy main
to
deb http://http.debian.net/debian wheezy main
deb-src http://http.debian.net/debian wheezy main

deb http://http.debian.net/debian wheezy-updates main
deb-src http://http.debian.net/debian wheezy-updates main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

After doing this, it pulled down a number of updates including the desired 1.0.1e-2+deb7u6.

So, did I go to far with this? Is this a good set of repositories? What are yours?

Re: Heartbleed

$
0
0
Hi restamp,

Yes, I think you did. But my is slightly different. I included contrib non-free to get all the security updates for packages that are not in mainline Debian. However, this might not be neccessary if you never install things that are out-of-distribution.
deb http://ftp.us.debian.org/debian wheezy main
deb http://security.debian.org/ wheezy/updates main contrib non-free

Re: Zyxel NSA-320 or 320S for Debian ? (and Open Media Vault)

$
0
0
razorjack,

For your purpose, 256MB is good enough. But 512MB of NSA320 is even better (room for growth). Some people even run OMV on GoFlexHome which has only 128MB!

Re: Zyxel NSA-320 or 320S for Debian ? (and Open Media Vault)

$
0
0
Thanks for info. So I probably get NSA320 or NSA325.
Unfortunatelly NSA320 is withdrawn from market (it has successor NSA320S with only 256MB), and I found only one seller with NSA320, but price is high (less than 10eur cheaper than NSA325v2).
I have serial-usb (FTDI I think) cable at home (from Arduino and other MAX chips)

Re: Zyxel NSA-320 or 320S for Debian ? (and Open Media Vault)

$
0
0
I have the NSA325v1(512MB) and have not been able to get OMV working on it but want to. Could anyone suggest to good tut on getting OMV to work on the NSA325 running debian wheezy? Currently I am using webmin but really want to get away from webmin. I like the webinterface of OMV.

~SOL

Cannot boot root file system from NAND with GoFlex Home

$
0
0
Hello there!

First posting to this group. I recently had a problem with my GoFlex Home base. The unit would function fine but would display "axentraserver: root" when using DLNA on my home LAN. As suggested by many forum posts, it would be better to reflash the base unit with the stock 2.7.1 firmware from Seagate. I did this and hence the problem started...

For the record I was previously able to SSH/SFTP into the base, which has firmware v2.7.1-391.

To debug, I created the serial cable and was able to pull the boot log using Termite and a USB to TTL Serial Cable (Console Cable for Raspberry Pi) from AdaFruit. I tried I receive the following error when using 1) the bare base 2) the base and SATA HDD and 3) trying to reflash with USB stick and SATA HDD in-place:

.
.
.
.
.
Warning Tdm is Powered Off
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
raid6: int32x1 91 MB/s
raid6: int32x2 109 MB/s
raid6: int32x4 119 MB/s
raid6: int32x8 94 MB/s
raid6: using algorithm int32x4 (119 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: measuring checksumming speed
arm4regs : 1084.400 MB/sec
8regs : 822.000 MB/sec
32regs : 803.200 MB/sec
raid5: using function: arm4regs (1084.400 MB/sec)
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0:rootfs", error -19
VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 1024 mtdblock0 (driver?)
1f01 6144 mtdblock1 (driver?)
1f02 254976 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)



I have tentatively started looking at the uBoot rescue image(?). Any other thoughts would be greatly appreciated

-Chroma

Re: Heartbleed

$
0
0
Thanks, bodhi. The addition of the security repository pulled in a number of (probably much overdue) updates. I'm not sure where I got the singular line in my sources.list. I think it was what was recommended when upgrading from Squeeze to Wheezy. In any event, I'm slowly learning something about an area of Debian that I was not very familiar with.

As a experiment, on my test server, I first added the six entries shown above, ran an update/upgrade (which pulled in lots of stuff), and then added "contrib non-free" components to the security repository. I then re-ran the update/upgrade/dist-upgrade and found nothing new was added. Thus, I think that for now I don't need these components. I am curious what security packages are desirable to have that are non-free.

In any event, here is what I am currently using on my active Pogoplug servers:
deb http://ftp.us.debian.org/debian wheezy main
deb http://security.debian.org/ wheezy/updates main

Thanks again.

Re: Heartbleed

$
0
0
Hi restamp,

I recall that I added the contrib non-free repo area back when wheezy was still in testing. And some packages were included in the upgrade, but they were not yet conformed to DFSG (Debian Free Software Guidelines). But after Sept 2013 (in my upgrade log), no packages from this repo area appeared on the log. So I think they were finally accepted into the main area.

Re: Heartbleed

$
0
0
And I must say, what a mess this Heartbleed bug has caused! it's a pain-in-the-you-know-where finding info about which website you have account that was affected by this and whether they have patched it (they should have by now) :)

Some interesting info:
http://www.bbc.com/news/technology-26971363

Note that Amazon is not affected. But if you have used the same Amazon password for other site(s) then still best to change Amazon password as precaution.

Re: Cannot boot root file system from NAND with GoFlex Home

$
0
0
Please post the whole boot log! And the listing of printenv.
Viewing all 26847 articles
Browse latest View live
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>