{"id":97,"date":"2019-06-20T18:36:49","date_gmt":"2019-06-20T16:36:49","guid":{"rendered":"https:\/\/www.deutnet.info\/?p=97"},"modified":"2020-11-08T21:56:24","modified_gmt":"2020-11-08T20:56:24","slug":"debian-sur-raspberry-pi-non-rasbian","status":"publish","type":"post","link":"https:\/\/www.deutnet.info\/?p=97","title":{"rendered":"Debian sur raspberry pi (non rasbian)"},"content":{"rendered":"<p>Configuration debian pour raspberry pi:<\/p>\n<p>Cr\u00e9ation partition:<\/p>\n<p>64M en fat16 pour la partition firmware<br \/>Le reste pour le system<\/p>\n<p>mount \/dev\/{device}p2 \/mnt<\/p>\n<p>debootstrap &#8211;arch=armhf &#8211;include=sudo,ntp,flash-kernel,openssh-server,bind9-host,resolvconf,network-manager,locales,isc-dhcp-server,init,vim,man-db,wget,u-boot-rpi,u-boot-tools buster \/mnt http:\/\/ftp.fr.debian.org\/debian<\/p>\n<p>mkdir \/mnt\/boot\/firmware<\/p>\n<p>mount \/dev\/{device}p1 \/mnt<\/p>\n<p>mount &#8211;bind \/dev \/mnt\/dev &amp;&amp; mount &#8211;bind \/proc \/mnt\/proc &amp;&amp; mount &#8211;bind \/sys \/mnt\/sys<\/p>\n<p>chroot \/mnt<\/p>\n<p>Configuration flash-kernel selon rapsberry pi:<br \/>echo &laquo;&nbsp;Raspberry Pi 1 Model A&nbsp;&raquo; &gt; \/etc\/flash-kernel\/machine<br \/>echo &laquo;&nbsp;Raspberry Pi 1 Model A+&nbsp;&raquo; &gt; \/etc\/flash-kernel\/machine<br \/>echo &laquo;&nbsp;Raspberry Pi 1 Model B&nbsp;&raquo; &gt; \/etc\/flash-kernel\/machine<br \/>echo &laquo;&nbsp;Raspberry Pi 1 Model B+&nbsp;&raquo; &gt; \/etc\/flash-kernel\/machine<br \/>echo &laquo;&nbsp;Raspberry Pi 1 Model B Rev2&nbsp;&raquo; &gt; \/etc\/flash-kernel\/machine<br \/>echo &laquo;&nbsp;Raspberry Pi 1 Compute Module&nbsp;&raquo; &gt; \/etc\/flash-kernel\/machine<br \/>echo &laquo;&nbsp;Raspberry Pi Model B V2&nbsp;&raquo; &gt; \/etc\/flash-kernel\/machine<br \/>echo &laquo;&nbsp;Raspberry Pi Model Zero&nbsp;&raquo; &gt; \/etc\/flash-kernel\/machine<br \/>echo &laquo;&nbsp;Raspberry Pi Model Zero W&nbsp;&raquo; &gt; \/etc\/flash-kernel\/machine<br \/>echo &laquo;&nbsp;Raspberry Pi 2 Model B&nbsp;&raquo; &gt; \/etc\/flash-kernel\/machine<br \/>echo &laquo;&nbsp;Raspberry Pi 3 Model B&nbsp;&raquo; &gt; \/etc\/flash-kernel\/machine<br \/>echo &laquo;&nbsp;Raspberry Pi 3 Model B+&nbsp;&raquo; &gt; \/etc\/flash-kernel\/machine<\/p>\n<p>Modification de fichier:<br \/>cat &lt;&lt; EOF &gt; \/etc\/fstab<br \/># \/etc\/fstab: static file system information.<br \/>#<br \/># Use &lsquo;blkid&rsquo; to print the universally unique identifier for a<br \/># device; this may be used with UUID= as a more robust way to name devices<br \/># that works even if disks are added and removed. See fstab(5).<br \/>#<br \/># # \/ was on \/dev\/mmcblk0p2 during installation<br \/>UUID=&lt;p2 UUID&gt; \/ ext4 errors=remount-ro 0 1<br \/># \/boot\/uboot was on \/dev\/mmcblk0p1 during installation<br \/>UUID=&lt;p1 UUID&gt; \/boot\/firmware vfat utf8 0 0<br \/>tmpfs \/tmp tmpfs defaults 0 0<br \/>tmpfs \/var\/tmp tmpfs defaults 0 0<br \/>EOF<\/p>\n<p>echo &laquo;&nbsp;raspberrypi&nbsp;&raquo; &gt; \/etc\/hostname<\/p>\n<p>cat &lt;&lt; EOF &gt; \/etc\/hosts<br \/>127.0.0.1 localhost raspberrypi<\/p>\n<p># The following lines are desirable for IPv6 capable hosts<br \/>::1 localhost ip6-localhost ip6-loopback<br \/>ff02::1 ip6-allnodes<br \/>ff02::2 ip6-allrouters<br \/>EOF<\/p>\n<p>cat &lt;&lt; EOF &gt; \/etc\/network\/interface<br \/># This file describes the network interfaces available on your system<br \/># and how to activate them. For more information, see interfaces(5).<\/p>\n<p>source \/etc\/network\/interfaces.d\/*<\/p>\n<p># The loopback network interface<br \/>auto lo<br \/>iface lo inet loopback<\/p>\n<p>auto eth0<br \/>iface eth0 inet dhcp<br \/>iface eth0 inet6 dhcp<br \/>EOF<\/p>\n<p>cat &lt;&lt; EOF &gt; \/etc\/default\/locale<br \/># File generated by update-locale<br \/>LANG=fr_FR.UTF-8<br \/>EOF<\/p>\n<p>cat &lt;&lt; EOF &gt; \/etc\/apt\/sources.list<br \/>deb http:\/\/ftp.fr.debian.org\/debian\/ buster main contrib non-free<br \/>deb-src http:\/\/ftp.fr.debian.org\/debian\/ buster main contrib non-free<\/p>\n<p>deb http:\/\/security.debian.org\/ buster\/updates main contrib non-free<br \/>deb-src http:\/\/security.debian.org\/ buster\/updates main contrib non-free<\/p>\n<p># stretch-updates, previously known as &lsquo;volatile&rsquo;<br \/>deb http:\/\/ftp.fr.debian.org\/debian\/ buster-updates main contrib non-free<br \/>deb-src http:\/\/ftp.fr.debian.org\/debian\/ buster-updates main contrib non-free<\/p>\n<p>deb http:\/\/ftp.fr.debian.org\/debian buster-backports main contrib non-free<br \/>deb-src http:\/\/ftp.fr.debian.org\/debian buster-backports main contrib non-free<br \/>EOF<\/p>\n<p>cat &lt;&lt; EOF &gt;\/etc\/udev\/rules.d\/70-persistent-net.rules<br \/># This file was automatically generated by the \/lib\/udev\/write_net_rules<br \/># # program, run by the persistent-net-generator.rules rules file.<br \/># #<br \/># # You can modify it, as long as you keep each rule on a single<br \/># # line, and change only the value of the NAME= key.<\/p>\n<p>SUBSYSTEM==&nbsp;&raquo;net&nbsp;&raquo;, ACTION==&nbsp;&raquo;add&nbsp;&raquo;, DRIVERS==&nbsp;&raquo;?*&nbsp;&raquo;, ATTR{address}==&nbsp;&raquo;&nbsp;&raquo;, ATTR{dev_id}==&nbsp;&raquo;0x0&Prime;, ATTR{type}==&nbsp;&raquo;1&Prime;, KERNEL==&nbsp;&raquo;eth*&nbsp;&raquo;, NAME=&nbsp;&raquo;eth0&Prime;<br \/>EOF<\/p>\n<p>adduser &lt;user&gt;<br \/>usermod -G sudo -a &lt;user&gt;<\/p>\n<p>Instalation selon rapsberry pi:<\/p>\n<p>apt update; apt install linux-image-&lt;version&gt;-&lt;type&gt; raspi-firmware<\/p>\n<p>editer le fichier suivant:<\/p>\n<p>\/etc\/default\/raspi-firmware pour avoir ces valeurs pour un d\u00e9marrage direct sur le kernel:<\/p>\n<p>ROOTPART=\/dev\/mmcblk0p2<\/p>\n<p>CONSOLES=&nbsp;&raquo;tty0 ttyAMA0,115200&Prime;<\/p>\n<p>Puis:<\/p>\n<p>update-initramfs -u<\/p>\n<p>\u00a0<\/p>\n<p>Pour d\u00e9marrer sur u-boot, modifier aussi cette ligne:<\/p>\n<p>KERNEL=&nbsp;&raquo;u-boot.bin&nbsp;&raquo;<\/p>\n<p>Faire la copie de uboot selon rapsberry pi:<br \/>cp \/usr\/lib\/u-boot\/rpi\/u-boot.bin \/boot\/firmware<br \/>cp \/usr\/lib\/u-boot\/rpi_2\/u-boot.bin \/boot\/firmware<br \/>cp \/usr\/lib\/u-boot\/rpi_3_32b\/u-boot.bin \/boot\/firmware<br \/>cp \/usr\/lib\/u-boot\/rpi_3\/u-boot.bin \/boot\/firmware<\/p>\n<p>Puis:<\/p>\n<p>update-initramfs -u<\/p>\n<p>\u00a0<\/p>\n<p>Vous pouvez aussi ajouter des options dans le fichier \/etc\/default\/raspi-firmware:<\/p>\n<p>Exemple pour une raspberry pi 2, modification des fr\u00e9quences par defaut:<\/p>\n<p>arm_freq=1000<br \/>core_freq=500<br \/>sdram_freq=400<br \/>over_voltage=0<br \/>over_voltage_sdram_p=0<br \/>over_voltage_sdram_i=0<br \/>over_voltage_sdram_c=0<\/p>\n<p>Exemple pour une raspberry pi 3,ajout 64 bits (pi3 non tester):<\/p>\n<p>arm_control=0x200<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Configuration debian pour raspberry pi: Cr\u00e9ation partition: 64M en fat16 pour la partition firmwareLe reste pour le system mount \/dev\/{device}p2 \/mnt debootstrap &#8211;arch=armhf &#8211;include=sudo,ntp,flash-kernel,openssh-server,bind9-host,resolvconf,network-manager,locales,isc-dhcp-server,init,vim,man-db,wget,u-boot-rpi,u-boot-tools buster \/mnt http:\/\/ftp.fr.debian.org\/debian mkdir \/mnt\/boot\/firmware mount \/dev\/{device}p1 \/mnt mount &#8211;bind \/dev \/mnt\/dev &amp;&amp; mount &#8211;bind \/proc \/mnt\/proc &amp;&amp; mount &#8211;bind \/sys \/mnt\/sys chroot \/mnt Configuration flash-kernel selon rapsberry pi:echo &laquo;&nbsp;Raspberry Pi&hellip; <a class=\"more-link\" href=\"https:\/\/www.deutnet.info\/?p=97\">Continue reading <span class=\"screen-reader-text\">Debian sur raspberry pi (non rasbian)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-97","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/www.deutnet.info\/index.php?rest_route=\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.deutnet.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deutnet.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deutnet.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deutnet.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=97"}],"version-history":[{"count":19,"href":"https:\/\/www.deutnet.info\/index.php?rest_route=\/wp\/v2\/posts\/97\/revisions"}],"predecessor-version":[{"id":154,"href":"https:\/\/www.deutnet.info\/index.php?rest_route=\/wp\/v2\/posts\/97\/revisions\/154"}],"wp:attachment":[{"href":"https:\/\/www.deutnet.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deutnet.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deutnet.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}