apogee@ubuntubox:/etc/apache2/mods-enabled$ sudo a2enmod
Your choices are: actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling ssl status substitute suexec unique_id userdir usertrack version vhost_alias
Which module(s) do you want to enable (wildcards ok)?
userdir
Enabling module userdir.
Run '/etc/init.d/apache2 restart' to activate new configuration!
apogee@ubuntubox:/etc/apache2/mods-enabled$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2 ... waiting . [ OK ]
apogee@ubuntubox:/etc/apache2/mods-enabled$
lepas tu pastikan kedua2 fail ni dah ada dlm dir berkenaan
apogee@ubuntubox:~$ ls public_html/tslinux/
ts7260-sdcard-initrd-1.03.gz zImage-7260-ts11
apogee@ubuntubox:~$
Set minicom bahagian terminal setting tu sebagai ANSI
caranya, tekan Ctrl+A+T > A (Sampai kuar ANSI kat bahagian terminal emulation tu)
pastikan semua kabel dah cucuk. Kabel eth, kabel serial... lepas tu cucuk kabel power dan tekan Ctrl+C sampai kuar RedBoot> prompt. Seterusnya boleh guna arahan ni...
RedBoot> fconfig -l
Run script at boot: true
Boot script:
.. fis load zImage
.. fis load initrd.gz
.. exec -r 0x00600000 -s 0x6D81E -b 0x00218000 -l 0xA6B50 -c "console=ttyAM0,115200 root=/dev/ram0 init=/linuxrc rw"
Boot script timeout (100ms resolution): 1
Use BOOTP for network configuration: false
Gateway IP address: 192.168.13.104
Local IP address: 192.168.13.16
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.13.104
Network hardware address [MAC]: 0x00:0xD0:0x69:0x41:0xAB:0xF7
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
** copy paste untuk setting boot script:
fis load zImage
fis load initrd.gz
exec -r 0x00600000 -s 0x6D81E -b 0x00218000 -l 0xA6B50 -c "console=ttyAM0,115200 root=/dev/ram0 init=/linuxrc rw"
fconfig -l tu untuk list aje. guna fconfig untuk edit dan matchkan dengan setting kat atas tu seterusnya reset dan masuk redboot lagi. Sekarang ni guna arahan ni pulak:
fis list
fis delete vmlinux
load -v -r -b 0x00218000 -m http -h 192.168.13.104 /~apogee/tslinux/zImage-7260-ts11
fis create -b 0x00218000 -l 0xA6B50 zImage
load -v -r -b 0x00600000 -m http -h 192.168.13.104 /~apogee/tslinux/ts7260-sdcard-initrd-1.03.gz
fis free
fis create -b 0x00600000 -l 0x6d81e initrd.gz
fis list
reset
kat bawah ni contoh yg aku penah buat (copy-paste dari console):
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
(reserved) 0x60000000 0x60000000 0x01D04000 0x00000000
RedBoot 0x61D04000 0x61D04000 0x00040000 0x00000000
vmlinux 0x61D44000 0x00218000 0x000C0000 0x00218000
FIS directory 0x61FFC000 0x61FFC000 0x00003000 0x00000000
RedBoot config 0x61FFF000 0x61FFF000 0x00001000 0x00000000
RedBoot> fis delete vmlinux
Delete image 'vmlinux' - continue (y/n)? y
RedBoot> load -v -r -b 0x00218000 -m http -h 10.1.1.104 /~apogee/zImage-7260-ts11
/
Raw file loaded 0x00218000-0x002beb4f, assumed entry at 0x00218000
RedBoot> fis create -b 0x00218000 -l 0xA6B50 zImage
RedBoot> load -v -r -b 0x00600000 -m http -h 10.1.1.104 /~apogee/ts7260-sdcard-initrd-1.03.gz
\
Raw file loaded 0x00600000-0x0066d81d, assumed entry at 0x00600000
RedBoot> fis free
0x61DEC000 .. 0x61FFC000 (0 blocks bad)
RedBoot> fis create -b 0x00600000 -l 0x6d81e initrd.gz
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
(reserved) 0x60000000 0x60000000 0x01D04000 0x00000000
RedBoot 0x61D04000 0x61D04000 0x00040000 0x00000000
zImage 0x61D44000 0x00218000 0x000A8000 0x00218000
initrd.gz 0x61DEC000 0x00600000 0x00070000 0x00600000
FIS directory 0x61FFC000 0x61FFC000 0x00003000 0x00000000
RedBoot config 0x61FFF000 0x61FFF000 0x00001000 0x00000000
RedBoot> fconfig
Run script at boot: true
Boot script:
.. fis load vmlinux
.. exec -c "console=ttyAM0,115200 root=/dev/mtdblock1"
Enter script, terminate with empty line
>> fis load zImage
>> fis load initrd.gz
>> exec -r 0x00600000 -s 0x6D81E -b 0x00218000 -l 0xA6B50 -c "console=ttyAM0,115200 root=/dev/ram0 init=/linuxrc rw"
>>
Boot script timeout (100ms resolution): 1
Use BOOTP for network configuration: false
Gateway IP address: 192.168.2.104
Local IP address: 192.168.2.16
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.2.104
Network hardware address [MAC]: 0x00:0xD0:0x69:0x41:0x12:0x2F
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)? y
RedBoot> reset
ok tu aje... buat lah banyak2 kali sampai muntah... aku pun dah rasa macam nak muntah ni.
Tiada ulasan:
Catat Ulasan
Nota: Hanya ahli blog ini sahaja yang boleh mencatat ulasan.