S*A 发帖数: 7142 | 1 在这个版上跟风进了几个。
装 ArchLinux 我用这个 Link, 步骤照做就可以了。
http://archlinuxarm.org/platforms/armv5/pogoplug-series-4
然后,如果要改启动 Linux 的参数的话,这个就特别坑爹了。
因为这个启动参数没有文件,是放在 flash 一个特定的地址,
被 UBoot 使用。ArchLinux 带了一个 package 可以在 Linux
里面改参数,叫作 uboot-tools。千万不要用这个 uboot-tools。
因为,你装完了 uboot-tools 以后,需要配置一个 /etc/fw_env.config。
这个就是 UBoot 使用的参数在 flash 里面的地址,和区间大小。
找了半天这个配置文件到底如何设置,没有。ArchLinux 论坛建议
是那几个示范配置一个一个试用下来。哪个 fw_printenv 不出错
就是了。结果貌似那个 0xa0000地址似乎没有错。就是它了。
fw_printenv 没有错,但是一旦 fw_saveenv,那就坏了。
pogoplug 起不来。灯一直闪。
焊接了 serial port 连接进去看。果然抱怨 BLPARAMS CRC bad。
使用 default env。
好在我多个心眼,写之前把原来的 fw_printenv 结果全部保存
SATA 硬盘里,这个 env 数据换个 enclosure 还可以读出来。
然后写了一个 script 把 env 全部装回去。(其中一个 bug 是
要用单引号,不然那个变量会在 UBoot setenv 的时候展开。)
调试了一下程序,把变量最后通过 UBoot 正确写回去,pogoplug
又满血复活了。
所以教训就是,改 UBoot env 还是要用串口写,这样保证 UBoot
写出来的变量自己用得了。在UBoot 以外改 env 风险太大。写的
区间不对把 UBoot 覆盖了那机器就彻底砖头了。 |
z*********e 发帖数: 10149 | 2 这个v4a101有可以用的debian了吗?debian用的比较顺手些
我看到doozan上有个用arch引导的debian,我都没试过arch,以前被你们说的吓到了 |
s***g 发帖数: 495 | 3 俺用的就是debian。
Never tried Arch.
Just install a new uboot using a tftp server in old uboot.
The goal is to change some part of NAND.
The process is essentially the same as flashing openwrt to your router.
【在 z*********e 的大作中提到】 : 这个v4a101有可以用的debian了吗?debian用的比较顺手些 : 我看到doozan上有个用arch引导的debian,我都没试过arch,以前被你们说的吓到了
|
e*i 发帖数: 10288 | 4 嗯,有串口线,玩起这东西来底气足多了。不过我以前弄
dockstar 的时候,从ebay买了山寨nokia 数据线,改装成
串口线,测试成功后,底气爆棚,写坏了mtd0,dockstar
大死 (无任何LED 亮,串口上没有任何输出),然后乖乖
买了JTAG,花了若干功夫才重新救活了那个dockstar。
【在 S*A 的大作中提到】 : 在这个版上跟风进了几个。 : 装 ArchLinux 我用这个 Link, 步骤照做就可以了。 : http://archlinuxarm.org/platforms/armv5/pogoplug-series-4 : 然后,如果要改启动 Linux 的参数的话,这个就特别坑爹了。 : 因为这个启动参数没有文件,是放在 flash 一个特定的地址, : 被 UBoot 使用。ArchLinux 带了一个 package 可以在 Linux : 里面改参数,叫作 uboot-tools。千万不要用这个 uboot-tools。 : 因为,你装完了 uboot-tools 以后,需要配置一个 /etc/fw_env.config。 : 这个就是 UBoot 使用的参数在 flash 里面的地址,和区间大小。 : 找了半天这个配置文件到底如何设置,没有。ArchLinux 论坛建议
|
s***g 发帖数: 495 | 5 俺想玩JTAG,但一直没有这个需要。
【在 e*i 的大作中提到】 : 嗯,有串口线,玩起这东西来底气足多了。不过我以前弄 : dockstar 的时候,从ebay买了山寨nokia 数据线,改装成 : 串口线,测试成功后,底气爆棚,写坏了mtd0,dockstar : 大死 (无任何LED 亮,串口上没有任何输出),然后乖乖 : 买了JTAG,花了若干功夫才重新救活了那个dockstar。
|
S*A 发帖数: 7142 | 6 debian 好像 uboot 不能在 SATA 上启动。
Debian 的论坛自己都建议是先装 ArchLinux,然后用 ArchLinux
的 UBoot 来 Boot debian.
【在 s***g 的大作中提到】 : 俺用的就是debian。 : Never tried Arch. : Just install a new uboot using a tftp server in old uboot. : The goal is to change some part of NAND. : The process is essentially the same as flashing openwrt to your router.
|
S*A 发帖数: 7142 | 7 这个如果你有 USB root, 可以直接把另外一个 pogoplug
或者其他板子来 flash 那个 SPI EEPROM。
【在 e*i 的大作中提到】 : 嗯,有串口线,玩起这东西来底气足多了。不过我以前弄 : dockstar 的时候,从ebay买了山寨nokia 数据线,改装成 : 串口线,测试成功后,底气爆棚,写坏了mtd0,dockstar : 大死 (无任何LED 亮,串口上没有任何输出),然后乖乖 : 买了JTAG,花了若干功夫才重新救活了那个dockstar。
|
e*i 发帖数: 10288 | 8 Based on my experience from goflex home, debian can boot from sata:
1 You need to use new kernel. 3.1.10 or newer.
2 Set correct arch number in uboot.
However, I still boot from usb since I have a small usb drive. SATA
drive can sleep if not used. If system is on SATA drive, it can't go
to sleep.
【在 S*A 的大作中提到】 : debian 好像 uboot 不能在 SATA 上启动。 : Debian 的论坛自己都建议是先装 ArchLinux,然后用 ArchLinux : 的 UBoot 来 Boot debian.
|
S*A 发帖数: 7142 | 9
ArchNumber 是 ArchLinux 用的吧。估计还是用来 ArchLinux 的
uboot 来引导 Debian。
How do you put it to sleep? Can it wake on Lan? I assume it can.
【在 e*i 的大作中提到】 : Based on my experience from goflex home, debian can boot from sata: : 1 You need to use new kernel. 3.1.10 or newer. : 2 Set correct arch number in uboot. : However, I still boot from usb since I have a small usb drive. SATA : drive can sleep if not used. If system is on SATA drive, it can't go : to sleep.
|
s***g 发帖数: 495 | 10 Similar experience here. My nas320 boot from sata.
Put rootfs on a usb drive is the way to go.
【在 e*i 的大作中提到】 : Based on my experience from goflex home, debian can boot from sata: : 1 You need to use new kernel. 3.1.10 or newer. : 2 Set correct arch number in uboot. : However, I still boot from usb since I have a small usb drive. SATA : drive can sleep if not used. If system is on SATA drive, it can't go : to sleep.
|
|
|
s***g 发帖数: 495 | 11 arcNumber = architecture number?
It is set in uboot so should be used by uboot to pass to the kernel.
Use a newer uboot and kernel should make it boot on sata.
I have tried on pogo v4 and it boot from all three source: usb, mmc, and
sata.
My way is different from debian forum becase I think it is easier and
confirmed by your experience too.
Here is my uboot env for pogo v4. I shared it here for the same reason.
arcNumber=3960
baudrate=115200
bootcmd=setenv bootargs console=ttyS0,$baudrate root=LABEL=ROOT rootdelay=$
bootdelay rootfstype=ext3 $mtdparts; run bootcmd_usb; run bootcmd_mmc; run
bootcmd_sata; reset
bootcmd_mmc=mmc rescan; mw 0x800000 0 1; ext2load mmc 0:1 0x800000 /boot/
uImage; if ext2load mmc 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000
0x1100000; else bootm 0x800000; fi
bootcmd_sata=ide reset; mw 0x800000 0 1; ext2load ide 0:1 0x800000 /boot/
uImage; if ext2load ide 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000
0x1100000; else bootm 0x800000; fi
bootcmd_usb=usb start; mw 0x800000 0 1; ext2load usb 0:1 0x800000 /boot/
uImage; if ext2load usb 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000
0x1100000; else bootm 0x800000; fi
bootdelay=3
ethact=egiga0
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=f78
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),
-(root)
preboot_nc=if ping $serverip; then setenv ncip $serverip; setenv stdin nc;
setenv stdout nc; setenv stderr nc; version; fi
stderr=serial
stdin=serial
stdout=serial
【在 S*A 的大作中提到】 : : ArchNumber 是 ArchLinux 用的吧。估计还是用来 ArchLinux 的 : uboot 来引导 Debian。 : How do you put it to sleep? Can it wake on Lan? I assume it can.
|
s***g 发帖数: 495 | 12 To put hard drive to sleep, use hdparm to set the parameter.
To my test, pogo e02 and pogo v4 can not wol while nas320 can. |
e*i 发帖数: 10288 | 13
My mistake. Should be Arc Number, not arch number.
Use HDparm to set it. After certain time of inactivity, it can
spin down.
Yes. It can wake on lan.
【在 S*A 的大作中提到】 : : ArchNumber 是 ArchLinux 用的吧。估计还是用来 ArchLinux 的 : uboot 来引导 Debian。 : How do you put it to sleep? Can it wake on Lan? I assume it can.
|
e*i 发帖数: 10288 | 14 Machine ID (Arc Number) list
http://www.arm.linux.org.uk/developer/machines/
Auto spin down HD
http://archlinuxarm.org/forum/viewtopic.php?f=53&t=2167
【在 S*A 的大作中提到】 : : ArchNumber 是 ArchLinux 用的吧。估计还是用来 ArchLinux 的 : uboot 来引导 Debian。 : How do you put it to sleep? Can it wake on Lan? I assume it can.
|
S*A 发帖数: 7142 | 15 哦,明白。多谢。那个 ArcNumber 是标明 device ID,
有点类似 PCI Vendor ID/ Device ID 对吧。
【在 e*i 的大作中提到】 : Machine ID (Arc Number) list : http://www.arm.linux.org.uk/developer/machines/ : Auto spin down HD : http://archlinuxarm.org/forum/viewtopic.php?f=53&t=2167
|