{"id":252231,"date":"2015-03-02T19:02:02","date_gmt":"2015-03-02T15:02:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=252231"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=252231","title":{"rendered":"\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Cubieboard \u0441 linux"},"content":{"rendered":"<p> \t\t\t\u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u0441 \u043a\u0430\u043a\u0438\u043c\u0438 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0432\u043e\u0435\u0433\u043e Cubieboard, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441 \u043a\u0440\u0430\u0441\u043d\u044b\u043c\u0438 \u0433\u043b\u0430\u0437\u0430\u043c\u0438 \u043d\u043e\u0447\u044c\u044e. \u042f \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u044e \u043d\u0430 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u0435 \u0447\u0435\u0433\u043e \u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0442\u0435 \u0432\u0435\u0449\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u2014 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b, \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Cubieboard.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f\u0445 \u00abCubietruck. \u0414\u043e\u0440\u043e\u0436\u043d\u044b\u0439 \u043c\u0438\u043d\u0438 \u0441\u0435\u0440\u0432\u0435\u0440. \u0427\u0430\u0441\u0442\u044c 2\u00bb \u0438 \u00abCubietruck. \u0423\u044e\u0442\u043d\u044b\u0439, \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\u00bb. \u042f \u043b\u0438\u0448\u044c \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u0443\u0431\u0438\u043a\u0430 \u043a\u0430\u043a \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0441 HDD.<\/p>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u043f\u043e-\u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 c load average. \u042d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043d\u0435 \u043f\u0430\u0434\u0430\u043b \u043d\u0438\u0436\u0435 1, \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0442\u044f\u0436\u0435\u043b\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 cpu \u0432 1%. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043a\u0443\u0431\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d \u043e\u0448\u0438\u0431\u043e\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433, \u0432 \u0444\u0430\u0439\u043b\u0435 script.bin, \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 [usbc0]. \u041d\u0443\u0436\u043d\u043e \u044d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c. \u042f \u0441\u0442\u0430\u0432\u0438\u043b \u0441\u0432\u043e\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432 nand, \u043f\u043e\u044d\u0442\u043e\u043c\u0443:<\/p>\n<p>  sudo -i mount \/dev\/nanda \/mnt cd \/mnt bin2fex script.bin script.fex  rm script.bin<br \/>\n  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c vim\u043e\u043c script.fex \u0438 \u0438\u0449\u0435\u043c \u0432 usbc0 \u043e\u043f\u0446\u0438\u044e usb_detect_type=1, \u0434\u0430\u043b\u0435\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0435 usb_detect_type=0. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c:<\/p>\n<p>  fex2bin script.fex script.bin<br \/>\n  \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f \u0438 \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e l.a &gt;=0;<\/p>\n<p>  \u0412\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0441 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u043e\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u0437 nand \u043d\u0430 HDD. \u0421\u043b\u0435\u0434\u0443\u044f \u0433\u0430\u0439\u0434\u0443 \u00abMoving Rootfs From Nandflash To Hard Drive\u00bb \u0434\u043e \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u043c\u0435\u043d\u044f \u043d\u0435 \u0434\u043e\u0432\u0435\u043b\u043e. \u041a\u0443\u0431\u0438\u043a \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f, \u0443\u0445\u043e\u0434\u0438\u043b \u0432 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0440\u0435\u0431\u0443\u0442, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u043a\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0441\u044c \u0437\u0430\u043d\u043e\u0432\u043e. \u042f \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0435\u0449\u0438: \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0430\u0431, \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a U-boot. \u041e\u0434\u043d\u0430\u043a\u043e \u0441\u0442\u0430\u0440\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c. \u0421\u043b\u0435\u0434\u0443\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u00abCubietruck. \u0423\u044e\u0442\u043d\u044b\u0439, \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\u00bb \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u0441 HDD. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0444\u0430\u0439\u043b uEnv.txt \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0442\u0430\u043a:<\/p>\n<p>  console=tty0 extraargs=console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard nand_root=\/dev\/sda1<br \/>\n  \u0422\u0440\u0435\u0442\u044c\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0441 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 lubuntu arm \u043e\u0442\u0432\u0435\u0447\u0430\u043b\u0438 404. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u2014 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c sources.list:<\/p>\n<p>  nano \/etc\/apt\/sources.list<br \/>\n  \u0418 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430:<\/p>\n<p>  sources.listdeb old-releases.ubuntu.com\/ubuntu\/ raring main universe restricted multiverse<br \/>\n  deb-src old-releases.ubuntu.com\/ubuntu\/ raring main universe restricted multiverse<\/p>\n<p>  deb old-releases.ubuntu.com\/ubuntu\/ raring-security main universe restricted multiverse<br \/>\n  deb-src old-releases.ubuntu.com\/ubuntu\/ raring-security main universe restricted multiverse<\/p>\n<p>  deb old-releases.ubuntu.com\/ubuntu\/ raring-updates main universe restricted multiverse<br \/>\n  deb-src old-releases.ubuntu.com\/ubuntu\/ raring-updates main universe restricted multiverse<\/p>\n<p>  deb old-releases.ubuntu.com\/ubuntu\/ raring-backports main restricted universe multiverse<br \/>\n  deb-src old-releases.ubuntu.com\/ubuntu\/ raring-backports main restricted universe multiverse<\/p>\n<p>  deb old-releases.ubuntu.com\/ubuntu\/ raring-proposed main restricted universe multiverse<br \/>\n  deb-src old-releases.ubuntu.com\/ubuntu\/ raring-proposed main restricted universe multiverse<\/p>\n<p>  \u0427\u0435\u0442\u0432\u0435\u0440\u0442\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u043a\u0443\u0431\u0430 \u043a\u0430\u043a \u0442\u043e\u0447\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430. DNS \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442\u044c\u0441\u044f, \u043f\u043e\u043c\u043e\u0433\u043b\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \/etc\/dnsmasq.conf dns\u043e\u0432 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0438\u0437 \/etc\/resolv.conf:<\/p>\n<p>  dnsmasq.confbind-interfaces<br \/>\n  interface=wlan0<br \/>\n  dhcp-range=192.168.1.10,192.168.1.100<br \/>\n  server=x.x.x.x(DNS \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430)<\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043c\u0435\u043b\u043e\u0447\u044c. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \/etc\/network\/interfaces \u0441\u0442\u0440\u043e\u0447\u043a\u0443 allow-hotplug wlan0, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c wi-fi \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0431\u0443\u0442\u043e\u0432.<\/p>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u043e\u0438\u0442 \u0441\u0435\u0439\u0447\u0430\u0441 \u2014 \u044d\u0442\u043e \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u043e\u0432. \u041a\u0443\u0431\u0438\u043a \u0432\u0435\u0434\u0435\u0442 \u0441\u0435\u0431\u044f \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442 wifi, \u0440\u0435\u0436\u0435\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c. \u041f\u043e\u043a\u0430 \u0441\u0438\u0436\u0443 \u0447\u0435\u0440\u0435\u0437 10 \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u043a\u0430\u0447\u043a\u0438, \u043d\u043e \u044d\u0442\u043e \u043a\u043e\u0441\u0442\u044b\u043b\u044c.<\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435. \t\t\t     http:\/\/habrahabr.ru\/post\/251923\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p> \t\t\t\u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u0441 \u043a\u0430\u043a\u0438\u043c\u0438 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0432\u043e\u0435\u0433\u043e Cubieboard, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441 \u043a\u0440\u0430\u0441\u043d\u044b\u043c\u0438 \u0433\u043b\u0430\u0437\u0430\u043c\u0438 \u043d\u043e\u0447\u044c\u044e. \u042f \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u044e \u043d\u0430 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u0435 \u0447\u0435\u0433\u043e \u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0442\u0435 \u0432\u0435\u0449\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u2014 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b, \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Cubieboard.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f\u0445 \u00abCubietruck. \u0414\u043e\u0440\u043e\u0436\u043d\u044b\u0439 \u043c\u0438\u043d\u0438 \u0441\u0435\u0440\u0432\u0435\u0440. \u0427\u0430\u0441\u0442\u044c 2\u00bb \u0438 \u00abCubietruck. \u0423\u044e\u0442\u043d\u044b\u0439, \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\u00bb. \u042f \u043b\u0438\u0448\u044c \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u0443\u0431\u0438\u043a\u0430 \u043a\u0430\u043a \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0441 HDD.<\/p>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u043f\u043e-\u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 c load average. \u042d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043d\u0435 \u043f\u0430\u0434\u0430\u043b \u043d\u0438\u0436\u0435 1, \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0442\u044f\u0436\u0435\u043b\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 cpu \u0432 1%. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043a\u0443\u0431\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d \u043e\u0448\u0438\u0431\u043e\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433, \u0432 \u0444\u0430\u0439\u043b\u0435 script.bin, \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 [usbc0]. \u041d\u0443\u0436\u043d\u043e \u044d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c. \u042f \u0441\u0442\u0430\u0432\u0438\u043b \u0441\u0432\u043e\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432 nand, \u043f\u043e\u044d\u0442\u043e\u043c\u0443:<\/p>\n<p>  sudo -i mount \/dev\/nanda \/mnt cd \/mnt bin2fex script.bin script.fex  rm script.bin<br \/>\n  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c vim\u043e\u043c script.fex \u0438 \u0438\u0449\u0435\u043c \u0432 usbc0 \u043e\u043f\u0446\u0438\u044e usb_detect_type=1, \u0434\u0430\u043b\u0435\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0435 usb_detect_type=0. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c:<\/p>\n<p>  fex2bin script.fex script.bin<br \/>\n  \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f \u0438 \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e l.a &gt;=0;<\/p>\n<p>  \u0412\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0441 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u043e\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u0437 nand \u043d\u0430 HDD. \u0421\u043b\u0435\u0434\u0443\u044f \u0433\u0430\u0439\u0434\u0443 \u00abMoving Rootfs From Nandflash To Hard Drive\u00bb \u0434\u043e \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u043c\u0435\u043d\u044f \u043d\u0435 \u0434\u043e\u0432\u0435\u043b\u043e. \u041a\u0443\u0431\u0438\u043a \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f, \u0443\u0445\u043e\u0434\u0438\u043b \u0432 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0440\u0435\u0431\u0443\u0442, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u043a\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0441\u044c \u0437\u0430\u043d\u043e\u0432\u043e. \u042f \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0435\u0449\u0438: \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0430\u0431, \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a U-boot. \u041e\u0434\u043d\u0430\u043a\u043e \u0441\u0442\u0430\u0440\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c. \u0421\u043b\u0435\u0434\u0443\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u00abCubietruck. \u0423\u044e\u0442\u043d\u044b\u0439, \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\u00bb \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u0441 HDD. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0444\u0430\u0439\u043b uEnv.txt \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0442\u0430\u043a:<\/p>\n<p>  console=tty0 extraargs=console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard nand_root=\/dev\/sda1<br \/>\n  \u0422\u0440\u0435\u0442\u044c\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0441 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 lubuntu arm \u043e\u0442\u0432\u0435\u0447\u0430\u043b\u0438 404. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u2014 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c sources.list:<\/p>\n<p>  nano \/etc\/apt\/sources.list<br \/>\n  \u0418 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430:<\/p>\n<p>  sources.listdeb old-releases.ubuntu.com\/ubuntu\/ raring main universe restricted multiverse<br \/>\n  deb-src old-releases.ubuntu.com\/ubuntu\/ raring main universe restricted multiverse<\/p>\n<p>  deb old-releases.ubuntu.com\/ubuntu\/ raring-security main universe restricted multiverse<br \/>\n  deb-src old-releases.ubuntu.com\/ubuntu\/ raring-security main universe restricted multiverse<\/p>\n<p>  deb old-releases.ubuntu.com\/ubuntu\/ raring-updates main universe restricted multiverse<br \/>\n  deb-src old-releases.ubuntu.com\/ubuntu\/ raring-updates main universe restricted multiverse<\/p>\n<p>  deb old-releases.ubuntu.com\/ubuntu\/ raring-backports main restricted universe multiverse<br \/>\n  deb-src old-releases.ubuntu.com\/ubuntu\/ raring-backports main restricted universe multiverse<\/p>\n<p>  deb old-releases.ubuntu.com\/ubuntu\/ raring-proposed main restricted universe multiverse<br \/>\n  deb-src old-releases.ubuntu.com\/ubuntu\/ raring-proposed main restricted universe multiverse<\/p>\n<p>  \u0427\u0435\u0442\u0432\u0435\u0440\u0442\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u043a\u0443\u0431\u0430 \u043a\u0430\u043a \u0442\u043e\u0447\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430. DNS \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442\u044c\u0441\u044f, \u043f\u043e\u043c\u043e\u0433\u043b\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \/etc\/dnsmasq.conf dns\u043e\u0432 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0438\u0437 \/etc\/resolv.conf:<\/p>\n<p>  dnsmasq.confbind-interfaces<br \/>\n  interface=wlan0<br \/>\n  dhcp-range=192.168.1.10,192.168.1.100<br \/>\n  server=x.x.x.x(DNS \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430)<\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043c\u0435\u043b\u043e\u0447\u044c. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \/etc\/network\/interfaces \u0441\u0442\u0440\u043e\u0447\u043a\u0443 allow-hotplug wlan0, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c wi-fi \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0431\u0443\u0442\u043e\u0432.<\/p>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u043e\u0438\u0442 \u0441\u0435\u0439\u0447\u0430\u0441 \u2014 \u044d\u0442\u043e \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u043e\u0432. \u041a\u0443\u0431\u0438\u043a \u0432\u0435\u0434\u0435\u0442 \u0441\u0435\u0431\u044f \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442 wifi, \u0440\u0435\u0436\u0435\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c. \u041f\u043e\u043a\u0430 \u0441\u0438\u0436\u0443 \u0447\u0435\u0440\u0435\u0437 10 \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u043a\u0430\u0447\u043a\u0438, \u043d\u043e \u044d\u0442\u043e \u043a\u043e\u0441\u0442\u044b\u043b\u044c.<\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-252231","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/252231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=252231"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/252231\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}