由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Hardware版 - pogoplug 装 ArchLinux 一点心得
相关主题
[HELP] dockstar的uboot的问题Pogoplug E02挺难搞?
dockstar 分区分析和建议是不是有的u盘对pogoplug兼容不行?
Pogoplug问题请教大牛Debian比ARCH更难安装的多
pogoplug E02 装debian重启失败,求助!感觉 Debian + Pogoplug 的script还是个不成熟的产品
在 Dockstar 上安装 shadowsocks server刷pogoplug, archlinux 和 Debian 哪个好
100伪币求解神座变砖之后的解决方案准备刷pogoplug
dockstar上架设openVPN(适合新手)谁pogoplug刷了debian能不能帮忙试试
最近pogoplug装Jeff debian squeeze请注意为啥大家都推荐debian over arch?
相关话题的讨论汇总
话题: uboot话题: archlinux话题: 0x800000话题: boot话题: sata
进入Hardware版参与讨论
1 (共1页)
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.

相关主题
100伪币求解神座变砖之后的解决方案Pogoplug E02挺难搞?
dockstar上架设openVPN(适合新手)是不是有的u盘对pogoplug兼容不行?
最近pogoplug装Jeff debian squeeze请注意Debian比ARCH更难安装的多
进入Hardware版参与讨论
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

1 (共1页)
进入Hardware版参与讨论
相关主题
为啥大家都推荐debian over arch?在 Dockstar 上安装 shadowsocks server
想折腾pogoplug的兄弟看过来,看过来,这里的教程真可爱100伪币求解神座变砖之后的解决方案
我真不该忽悠你们,我错了……dockstar上架设openVPN(适合新手)
Pogoplug E02该不该扔了?最近pogoplug装Jeff debian squeeze请注意
[HELP] dockstar的uboot的问题Pogoplug E02挺难搞?
dockstar 分区分析和建议是不是有的u盘对pogoplug兼容不行?
Pogoplug问题请教大牛Debian比ARCH更难安装的多
pogoplug E02 装debian重启失败,求助!感觉 Debian + Pogoplug 的script还是个不成熟的产品
相关话题的讨论汇总
话题: uboot话题: archlinux话题: 0x800000话题: boot话题: sata