APUDebian
Skočit na navigaci
Skočit na vyhledávání
Obsah
Zakladni cil
- Nainstalovat debian testing na Alix-APU s SSD diskem a pripravit navod pro ostatni
- Diky tomu ze hardware nove APU desky je pomerne vykony, neni problem na nem rozbehnout prome klasickeho routovani(ospf) i dalsi sluzby(DNS, mail, jednoduchy web, statistiky prenosu...)
- Procesor je x86(konkretne architektura amd64), 2xcore 1GHz
- Jde pripojit SSD disk pres mSATA, nebo klasicky disk pres SATA - idealni na klasickou instalaci linuxu(zadne omezeni readonly CF).
- Klasicky disk pres SATA se nevejde do krabicky, tak jsem zvolil mSATA od pcengines s kapacitou 16GB
- V pripade potreby neni problem koupit vetsi mSATA napr. u alza.cz - az 500GB
- Cely navod je hodne detailni, experti se snad neurazi :-). Pro zkusenejsi: Jedina vetsi slozitost spociva v nastaveni bootloaderu a kernelelu tak aby produkoval vystup na RS323. Ostatni je standardni instalace linuxu(debianu).
Instalace HW
- Nalepit chladic(kus plechu) podle navodu vyrobce, hlinikova krabicka pomaha taky chladit
- Zastrcit SSD disk
- soupnout do krabicky
Pripojeni pres seriovou linku
- APU nema grafickou kartu, takze je potreba pripojit se seriovou linkou.
- Pro ty mene stastnejsi z nas kteri uz nemaji v notebooku seriovy port je potreba neco jako: USB->RS232 a null-modem cable null-modem kabel
- Nastaveni rychlosti serioveho portu 115200 8N1
- Nalezeni spravneho cisla COM portu prirazeneho prevodniku. viz screenshot
- Pres putty viz screenshot
- Pres hyperterminal viz. screenshot
Pripraveni instalacniho USB
Pavkriz: link na nastroj, ktery umi pod linuxem pripravit instalacni image pro USB flasku, ze ktere se to pak samo nainstaluje na SSD https://github.com/ssinyagin/pcengines-apu-debian-cd
Vlastni instalace Debianu
Tipy
- zkontrolovat FD/HD pres mii-tool a ethtool
Performance testing
- vsechny testy bez NATu, ipv4
- test pres iptraf TCP halfduplex v podstate cely 1Gbit/s
- test pres iptraf TCP fullduplex zvladne tak kolem 500Mbit/s, cca 20 000pps. Pravdepodobne uz nestihaji irq/s --> Mozny tunning pres irqbalance a podobne??
Pripojit mobilku s androidem jako zdroj internetu
- Na androidu Nastaveni --> Sdileni pripojeni --> enable sdileni pripojeni pres USB
- Na APU
root@hal:~# ip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 00:0d:b9:33:15:58 brd ff:ff:ff:ff:ff:ff 3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 00:0d:b9:33:15:59 brd ff:ff:ff:ff:ff:ff 4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 00:0d:b9:33:15:5a brd ff:ff:ff:ff:ff:ff 5: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 1000 link/ether fa:79:b8:31:51:1e brd ff:ff:ff:ff:ff:ff
- zadat prikaz dhclient usb0
root@hal:~# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:0d:b9:33:15:58 brd ff:ff:ff:ff:ff:ff inet 172.23.205.147/22 brd 172.23.207.255 scope global eth0 valid_lft forever preferred_lft forever inet6 2a00:1028:f:1001:20d:b9ff:fe33:1558/64 scope global dynamic valid_lft 2591972sec preferred_lft 604772sec inet6 fe80::20d:b9ff:fe33:1558/64 scope link valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 00:0d:b9:33:15:59 brd ff:ff:ff:ff:ff:ff 4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 00:0d:b9:33:15:5a brd ff:ff:ff:ff:ff:ff 5: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000 link/ether fa:79:b8:31:51:1e brd ff:ff:ff:ff:ff:ff inet 192.168.42.189/24 brd 192.168.42.255 scope global usb0 valid_lft forever preferred_lft forever inet6 fe80::f879:b8ff:fe31:511e/64 scope link valid_lft forever preferred_lft forever