不套用別人的網樂通改機包,不想破壞原本的檔案,看看 frame buffer 的問題,以下紀錄歷程:
- 拔下 DOM, 裝到 linux
- mkdir -p /mnt/sdb2 ; mount /dev/sdb2 /mnt/sdb2 # 假設該 DOM dmesg 偵測到是 sdb
- 以下省略 /mnt/sdb2 字樣
- 讓 console 線可以連
- vi /etc/inittabBB
- ttyAS0::respawn:/bin/sh # 去掉註解改成這樣
- 取消 root 密碼
- vi /etc/passwd # 將第1個冒號和第二個冒號間文字刪去
- 開啟 telnet 透過網路連線
- vi /etc/init.d/fdtv-init.sh # 在 SCS 這行後面加上
- udhcpc& # 沒有這行可能就要自己用遙控器設定網路連線方式
- telnetd
- 開機
- 改密碼
- cd /
- echo root:::::::: > etc/shadow # 8 個 :
- chmod 600 etc/shadow
- vi etc/passwd # 將第1個冒號和第二個冒號間文字改成 x
- passwd
- 更換自編 kernel
- mv vmlinux.ub vmlinux.old
- ln -s vmlinux.ub.new vmlinux.ub
- 更換自編 busybox
- vi etc/init.d/fdtv-init.sh # 第五行的 function 移除,這是錯的語法
- cd etc ; mv inittab inittab.org ; ln -s inittabBB initttab
- 允許載入網樂通原本的 modules
- mkdir -p lib/modules ; cd lib/modules
- ln -s ../../root/modules 2.6.23.17_stm23_A18B-PDK7105-32BITS-A18B
- 更換自編 kernel 後,無法取得 DirectFB, 應該是我設定選項時,某些選項影響到frame buffer,訊息差異如下:
- 原本 kernel 有訊息
- Load module OneWire [208] by swapper (pid 1)
- Enter OneWirePIOInit() !***
- Left OneWirePIOInit() !***ok
- OneWire module inited ok!
- 更換自編kernel 後
- 無上述 OneWire 訊息
- 執行到 iptv 時,出現訊息:
- (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 499)..
- (!) DirectFB/FBDev: Could not mmap the framebuffer!
- 改用原版放出的source,重編Kernel後,仍可使用 DirectFB,訊息差異如下
- 原本 kernel 有訊息
- [uboot_gb620]:P/N flag = 2
- ...
- Configuring FLASH for boot-from-spi: boot_mode=2
- Spi boot:bank1_start=0x4000000, bank2_start0x=6000000
- device_init:###############
- stx7105_configure_nand:###############
- ...
- STMicroelectronics LIRC driver initialized.
- Load module OneWire [208] by swapper (pid 1)
- Enter OneWirePIOInit() !***
- Left OneWirePIOInit() !***ok
- OneWire module inited ok!
- ...
- STMicroelectronics ASC driver initialized
- asc_init!!!1
- asc_init!!!2
- stasc.0: ttyAS0 at MMIO 0xfd032000 (irq = 121) is a stasc
- stasc.1: ttyAS1 at MMIO 0xfd033000 (irq = 120) is a stasc
- asc_init!!!3
- platform registration... <7>done!
- ...
- PPPoL2TP kernel driver, V1.0
- tun: Universal TUN/TAP device driver, 1.6
- tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
- ...
- ata1: SATA link down (SStatus 0 SControl 300)
- A18: Function=plat_nand_init,line=149 ***
- A18 Function=stm_nand_flex_probe,line=915*************
- nand_get_flash_type:***maf_id =0x0****dev_id=0x0
- ...
- 更換自編kernel 後
- [uboot_gb620]:P/N flag = 255
- ...
- Configuring FLASH for boot-from-spi: boot_mode=2
- ...
- STMicroelectronics LIRC driver initialized.
- ...
- STMicroelectronics ASC driver initialized
- stasc.0: ttyAS0 at MMIO 0xfd032000 (irq = 121) is a stasc
- stasc.1: ttyAS1 at MMIO 0xfd033000 (irq = 120) is a stasc
- platform registration... <7>done!
- ...
- PPPoL2TP kernel driver, V1.0
- ...
- ata1: SATA link down (SStatus 0 SControl 300)
- nand_get_flash_type:***maf_id =0x0****dev_id=0x0
- ...
沒有留言:
張貼留言