Consegui resolver o meu problema com o debootstrap, aqui está um resumo rápido do processo que segui.
- desmontar usb
-
Particione o USB (4 GB)
Zap out GPT with gdisk, as my board didn't want to boot GPT. Created just one linux partition, nothing else. I had lots of problems getting a usb drive bootable on my embedded system.
-
mkfs.ext4 / dev / sdb1
- mount / dev / sdb1 / media / usb
-
joomie do debootstrap / media / usb link
I highly recommend setting up something like apt-cacher
-
chroot / media / usb
Mount all these: mount -t devtmpfs dev /dev mount -t devpts devpts /dev/pts mount -t proc proc /proc mount -t sysfs sysfs /sys
-
Edite / etc / fstab: (eu uso nano para edição normalmente)
proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 UUID=xxxx / ext4 errors=remount-ro 0 1 to write UUID into file use: blkid -o value -s UUID /dev/sdb1 >> /etc/fstab
-
manutenção da casa:
apt-get install locales dpkg-reconfigure locales apt-get install console-setup dpkg-reconfigure keyboard-configuration (optional?) apt-get install console-data passwd root adduser linuxuser
-
Instale o grub e o kernel
apt-get install grub-pc I installed grub into both /dev/sdb and /dev/sdb1 but you can use install-mbr for /dev/sdb I think apt-get install linux-image-686-pae
-
agora edite o / etc / default / grub:
uncomment GRUB_TERMINAL=console add GRUB_GFXPAYLOAD_LINUX=text to GRUB_CMDLINE_LINUX_DEFAULT add: console=tty0 console=ttyPCH0,115200 run upgrade-grub2
-
edite o arquivo / etc / default / console-setup:
CODESET="guess" FONTFACE= FONTSIZE= VIDEOMODE=
-
crie /etc/kernel-img.conf com isto dentro:
image_dest = / do_symlinks = yes do_bootloader = yes do_bootfloppy = no do_initrd = yes link_in_boot = no
-
Agora instale o kernel personalizado com o dpkg -i
For me 2 options was important: CONFIG_SERIAL_PCH_UART=y CONFIG_SERIAL_PCH_UART_CONSOLE=y although I did highly customize the kernel after that. Currently I am compiling 3.14 with the rt-patch from linux-source-3.14 I downloaded out of wheezy-backports
-
Outras coisas a fazer antes de reiniciar (opcional)
edit /etc/modules to force drivers to load edit /etc/network/interfaces echo myHostName > /etc/hostname apt-get install telnetd apt-get install openssh-server
Nesta fase eu poderia inicializar o usb no meu sistema embarcado de destino e repetir todo o processo novamente para instalar o debian na unidade SATA. Obviamente, eu precisava instalar coisas como o debootstrap na unidade usb primeiro para facilitar isso, mas isso era menor.