PlugPBX - FreePBX + Asterisk on Debian
需要的硬體:
PlugPBX 預設帳號密碼:
// 下載軟體 win32diskimager
https://launchpad.net/win32-image-writer
開啟軟體,將所下載的 image 寫入到 SDHC。
// 檢查 UBoot version 需 3.4.19 以後,才有支援 SDHC 開機
Windows XP 與 SheevaPlug 用 mini-USB 接上,開啟 PuTTY 並開啟 Console 視窗,SheevaPlug 插上電源開機。
透過 PuTTY 的視窗可以看到開機的狀態,當出現
Hit any key to stop autoboot... <按下任一鍵>
Marvell >>
當看到 Marvell 提示字元時,表示已進入了 UBoot 命令模式,輸入以下指令:
Marvell>> setenv mainlineLinux yes Marvell>> setenv arcNumber 2097 Marvell>> setenv bootargs_console console=ttyS0,115200 Marvell>> setenv bootcmd_mmc 'mmcinit; ext2load mmc 0 0x0800000 /uInitrd; ext2load mmc 0 0x400000 /uImage' Marvell>> setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x400000 0x0800000' Marvell>> saveenv Marvell>> reset
若一切順利應該會開始啟動 SDHC 的 PlugPBX 系統。
TIPs:
若開機訊息不小心跳過,可以用 root 登入後,執行 reboot 重開機再來一次,或者拿尖物戳 SDHC 槽右側的小孔。
檔案系統
PlugPBX:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/mmcblk0p2 3.4G 854M 2.4G 27% / tmpfs 252M 0 252M 0% /lib/init/rw udev 10M 128K 9.9M 2% /dev tmpfs 252M 0 252M 0% /dev/shm /dev/mmcblk0p1 206M 17M 179M 9% /boot PlugPBX:~# mount /dev/mmcblk0p2 on / type ext2 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/mmcblk0p1 on /boot type ext2 (rw)
Linux 版本
PlugPBX:~# uname -a Linux PlugPBX 2.6.30-2-kirkwood #1 Sun Sep 27 22:57:55 UTC 2009 armv5tel GNU/Linux PlugPBX:~# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux testing (squeeze) Release: testing Codename: squeeze PlugPBX:~# cat /proc/version Linux version 2.6.30-2-kirkwood (Debian 2.6.30-8) (waldi@debian.org) (gcc version 4.3.4 (Debian 4.3.4-3) ) #1 Sun Sep 27 22:57:55 UTC 2009
Web UI
Home
ARI
FOP
FreePBX
phpSysInfo
MUNIN
WEBMIN
USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME], egiga1 Hit any key to stop autoboot: 0 SDHC found. Card desciption is: Manufacturer: 0x1b, OEM "SM" Product name: "00000", revision 1.0 Serial number: 1909810478 Manufacturing date: 9/2010 CRC: 0x00, b0 = 0 Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - mmc 0:1 ** Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - mmc 0:1 ** ## Booting image at 00800000 ... Bad Magic Number
Ans: 請改用 win32diskimager 將 image 寫入 SDHC,下載連結 https://launchpad.net/win32-image-writer。
Ans: 進入 U-Boot 模式
Marvell>> resetenv Marvell>> reset ... ... Marvell>> setenv mainlineLinux yes Marvell>> setenv arcNumber 2097 Marvell>> setenv bootargs_console console=ttyS0,115200 Marvell>> setenv bootcmd_mmc 'mmcinit; ext2load mmc 0 0x0800000 /uInitrd; ext2load mmc 0 0x400000 /uImage' Marvell>> setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x400000 0x0800000' Marvell>> saveenv