https://wiki.excito.com/api.php?action=feedcontributions&user=Cs%C3%A1nyi+P%C3%A1l&feedformat=atomBubbaWiki - User contributions [en]2024-03-29T15:14:56ZUser contributionsMediaWiki 1.37.2https://wiki.excito.com/index.php?title=User:Cs%C3%A1nyi_P%C3%A1l&diff=1443User:Csányi Pál2015-08-26T08:33:13Z<p>Csányi Pál: Minor change.</p>
<hr />
<div>I'm a teacher of technics and informatics science in a Secondary school in Serbia.<br />
My first language is Hungarian.<br />
My interests are: electronics and robotics with Arduino and Fritzing, CAD systems like FreeCAD, LibreCAD, BRL-CAD.<br />
<br />
I have a Bubba | Two headless power PC box.<br />
I'm using it as a home LAN and Web server.<br />
The Web server's link is: [http://cspl.hu]<br />
<br />
I want to use this Bubba 2 box even after many years.<br />
<br />
I'm running on B2 Gentoo linux now, thanks to [http://forum.excito.com/memberlist.php?mode=viewprofile&u=6682 sakaki]'s work at: [https://github.com/sakaki-/gentoo-on-b2]</div>Csányi Pálhttps://wiki.excito.com/index.php?title=User:Cs%C3%A1nyi_P%C3%A1l&diff=1442User:Csányi Pál2015-08-26T08:17:03Z<p>Csányi Pál: Small changes in content and links.</p>
<hr />
<div>I'm a teacher of technics and informatics science in a Secondary school in Serbia.<br />
My first language is Hungarian.<br />
My interests are: electronics and robotics with Arduino and Fritzing, CAD systems like FreeCAD, LibreCAD, BRL-CAD.<br />
<br />
I have a Bubba | Two headless power PC box.<br />
I'm using it as a home LAN and Web server.<br />
The Web server's link is: [http://cspl.hu]<br />
<br />
I want to use this Bubba 2 box even after many years.<br />
<br />
I'm running on B2 Gentoo linux now, thanks to sakaki's work at: [https://github.com/sakaki-/gentoo-on-b2]</div>Csányi Pálhttps://wiki.excito.com/index.php?title=User:Cs%C3%A1nyi_P%C3%A1l&diff=1428User:Csányi Pál2015-01-24T11:30:26Z<p>Csányi Pál: Fixing the URL to recent Bubba wiki.</p>
<hr />
<div>I'm a teacher of technics and informatics science in a Secondary school in Serbia.<br />
My first language is Hungarian.<br />
My interests are: electronics and robotics with Arduino and Fritzing, CAD systems like FreeCAD, LibreCAD, BRL-CAD.<br />
<br />
I have a Bubba | Two headless power PC box.<br />
I'm using it as a home LAN and Web server.<br />
The Web server's link is: [http://cspl.me]<br />
<br />
I want to use this Bubba 2 box even after many years.<br />
These days I'm trying to build for it a custom kernel with the Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter driver as a module, but sofar without any success.<br />
<br />
I'm trying to follow this wiki page: [http://wiki.mybubba.org/wiki/index.php?title=Building_a_custom_kernel]</div>Csányi Pálhttps://wiki.excito.com/index.php?title=Talk:Running_Arch_Linux&diff=1427Talk:Running Arch Linux2015-01-19T18:54:23Z<p>Csányi Pál: Can running Arch linux on Bubba Two too?</p>
<hr />
<div>Can running Arch linux on Bubba Two too?</div>Csányi Pálhttps://wiki.excito.com/index.php?title=User:Cs%C3%A1nyi_P%C3%A1l&diff=1405User:Csányi Pál2014-02-17T14:09:40Z<p>Csányi Pál: Added some other informations.</p>
<hr />
<div>I'm a teacher of technics and informatics science in a Secondary school in Serbia.<br />
My first language is Hungarian.<br />
My interests are: electronics and robotics with Arduino and Fritzing, CAD systems like FreeCAD, LibreCAD, BRL-CAD.<br />
<br />
I have a Bubba | Two headless power PC box.<br />
I'm using it as a home LAN and Web server.<br />
The Web server's link is: [http://cspl.me]<br />
<br />
I want to use this Bubba 2 box even after many years.<br />
These days I'm trying to build for it a custom kernel with the Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter driver as a module, but sofar without any success.<br />
<br />
I'm trying to follow this wiki page: [http://wiki.excito.org/wiki/index.php/Building_a_custom_kernel]</div>Csányi Pálhttps://wiki.excito.com/index.php?title=Building_a_custom_kernel&diff=1404Building a custom kernel2014-02-17T13:58:37Z<p>Csányi Pál: /* Introduction */ What about compiling kernel modules?</p>
<hr />
<div>= Introduction =<br />
<br />
This a very quick-and-dirty how-to to build (and customize) a kernel for your bubba 3 device. It also works for bubba 2 providing some small differences I will point out.<br />
<br />
OK, but what about compiling modules for this custom kernel?<br />
How can one compile and install kernel modules for Bubba 2 or 3 device using this method ( by configuring, compiling on the guest operating system installed on VirtualBox )?<br />
<br />
The command 'make modules_install' does not install modules ob Bubba device, but want to install on that guest operating system on the VirtualBox.<br />
<br />
= Preparing a compilation host =<br />
<br />
You could compile direclty on the B3 (resp. B2) itself, but it would take HOURS. That's why we will use a host which will be cross-compiling the kernel much quicker. Personnaly I use a virtual host in VirtualBox, but you can use whatever machine/virtualization technology. <br />
<br />
== OS install ==<br />
<br />
The host must run debian squeeze, either i386 or amd64. I will not detail the OS install phase, if you want a custom kernel, you probably know how to do that. Nothing fancy here just a plain debian install. The desktop environment is obviously not needed&nbsp;;-) . <br />
<br />
== Installing the compilation tools ==<br />
<br />
After the install is completed, install the compiling tools&nbsp;: <br />
<br />
*emdebian cross-compilation toolchain:<br />
<br />
apt-get install emdebian-archive-keyring<br />
echo "deb http://www.emdebian.org/debian/ squeeze main" &gt; /etc/apt/sources.list.d/emdebian.list<br />
apt-get update<br />
<br />
For the B3: <br />
<br />
apt-get install gcc-4.4-arm-linux-gnueabi<br />
<br />
For the B2: <br />
<br />
apt-get install gcc-4.4-powerpc-linux-gnu<br />
<br />
Note: you can install both toolchains if you have both platforms as I do&nbsp;:-) <br />
<br />
*native compiler and debian package utils&nbsp;:<br />
<br />
apt-get install build-essential devscripts<br />
<br />
*platform specific tools&nbsp;:<br />
<br />
apt-get install device-tree-compiler uboot-mkimage<br />
<br />
*development files for ncurses&nbsp;:<br />
<br />
apt-get install libncurses5-dev<br />
<br />
= Build a custom kernel =<br />
<br />
== Download and prepare the excito kernel source ==<br />
<br />
The next operations can be done as a regular user. <br />
<br />
*Prepare the environment&nbsp;: <br />
**For the B3:<br />
<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabi-<br />
<br />
**For the B2:<br />
<br />
export ARCH=powerpc<br />
export CROSS_COMPILE=powerpc-linux-gnu-<br />
<br />
*Download the source files<br />
<br />
dget -xu http://b3.update.excito.org/pool/main/l/linux/linux_2.6.39.4-13.dsc<br />
<br />
Note: the above link will work as long as excito does not upgrade the kernel. <br />
<br />
== Customizing the kernel ==<br />
<br />
Now everything is in place, time to customize the kernel: <br />
<br />
*Move into the source directory&nbsp;:<br />
<br />
cd linux-2.6.39.4<br />
<br />
*Run the curses-based configuration tool (if you wish to use xconfig, be my guest, there are a few more dependencies to install):<br />
<br />
make menuconfig<br />
<br />
*Load the default excito configuration: From the menu, select <tt>Load an Alternate Configuration File</tt> and enter the following path:<br />
<br />
arch/arm/configs/bubba3_defconfig<br />
<br />
For the B2: <br />
<br />
arch/powerpc/configs/bubbatwo_defconfig<br />
<br />
*From now on you can customize the configuration to suit your needs (even patch the source if you're in the mood ...).<br />
<br />
*When you're satisfied, you may exit and save the configuration (it will be written in the path loaded above).<br />
<br />
Note: whenever you customize the kernel, the resulting configuration must be placed in <tt>arch/arm/configs/bubba3_defconfig</tt> (<tt>arch/powerpc/configs/bubbatwo_defconfig</tt> for the B2); only this file will be used during the compilation phase to configure the kernel. <br />
<br />
<h2> Compiling and packaging </h2><br />
<p>From the same directory, build the debian package: <br />
</p><br />
<pre class="_fck_mw_lspace">dpkg-buildpackage -us -uc -b -aarmel<br />
</pre><br />
<p>Note: If anyone knows the distinction between <tt>arm</tt> and <tt>armel</tt>, and why it's used here and not there, I'm very much interested&nbsp;! <br />
</p><p>For the B2&nbsp;: <br />
</p><br />
<pre class="_fck_mw_lspace">dpkg-buildpackage -us -uc -b -apowerpc<br />
</pre><br />
<p>The resulting package will be found in the parent directory, <tt>bubba3-kernel_2.6.39.4-13_armel.deb</tt> or <tt>bubba3-kernel_2.6.39.4-13_powerpc.deb</tt><br />
</p><br />
<p> But how can one compiling and packaging kernel modules? </p><br />
<br />
= Installing the new kernel on the device =<br />
<br />
Now you can send the debian package to your device, using scp or whatever you're confortable with. Then install it with a plain: <br />
<br />
dpkg -i bubba3-kernel_2.6.39.4-13_armel.deb<br />
<br />
(or the obvious adapt for the b2) <br />
<br />
You can now reboot your device. If your kernel panics during the boot, use your rescue key to reinstall the original excito kernel from http://b3.update.excito.org/pool/main/l/linux/</div>Csányi Pálhttps://wiki.excito.com/index.php?title=Building_a_custom_kernel&diff=1403Building a custom kernel2014-02-17T10:24:43Z<p>Csányi Pál: /* Customizing the kernel */ What about kernel modules?!</p>
<hr />
<div>= Introduction =<br />
<br />
This a very quick-and-dirty how-to to build (and customize) a kernel for your bubba 3 device. It also works for bubba 2 providing some small differences I will point out. <br />
<br />
= Preparing a compilation host =<br />
<br />
You could compile direclty on the B3 (resp. B2) itself, but it would take HOURS. That's why we will use a host which will be cross-compiling the kernel much quicker. Personnaly I use a virtual host in VirtualBox, but you can use whatever machine/virtualization technology. <br />
<br />
== OS install ==<br />
<br />
The host must run debian squeeze, either i386 or amd64. I will not detail the OS install phase, if you want a custom kernel, you probably know how to do that. Nothing fancy here just a plain debian install. The desktop environment is obviously not needed&nbsp;;-) . <br />
<br />
== Installing the compilation tools ==<br />
<br />
After the install is completed, install the compiling tools&nbsp;: <br />
<br />
*emdebian cross-compilation toolchain:<br />
<br />
apt-get install emdebian-archive-keyring<br />
echo "deb http://www.emdebian.org/debian/ squeeze main" &gt; /etc/apt/sources.list.d/emdebian.list<br />
apt-get update<br />
<br />
For the B3: <br />
<br />
apt-get install gcc-4.4-arm-linux-gnueabi<br />
<br />
For the B2: <br />
<br />
apt-get install gcc-4.4-powerpc-linux-gnu<br />
<br />
Note: you can install both toolchains if you have both platforms as I do&nbsp;:-) <br />
<br />
*native compiler and debian package utils&nbsp;:<br />
<br />
apt-get install build-essential devscripts<br />
<br />
*platform specific tools&nbsp;:<br />
<br />
apt-get install device-tree-compiler uboot-mkimage<br />
<br />
*development files for ncurses&nbsp;:<br />
<br />
apt-get install libncurses5-dev<br />
<br />
= Build a custom kernel =<br />
<br />
== Download and prepare the excito kernel source ==<br />
<br />
The next operations can be done as a regular user. <br />
<br />
*Prepare the environment&nbsp;: <br />
**For the B3:<br />
<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabi-<br />
<br />
**For the B2:<br />
<br />
export ARCH=powerpc<br />
export CROSS_COMPILE=powerpc-linux-gnu-<br />
<br />
*Download the source files<br />
<br />
dget -xu http://b3.update.excito.org/pool/main/l/linux/linux_2.6.39.4-13.dsc<br />
<br />
Note: the above link will work as long as excito does not upgrade the kernel. <br />
<br />
== Customizing the kernel ==<br />
<br />
Now everything is in place, time to customize the kernel: <br />
<br />
*Move into the source directory&nbsp;:<br />
<br />
cd linux-2.6.39.4<br />
<br />
*Run the curses-based configuration tool (if you wish to use xconfig, be my guest, there are a few more dependencies to install):<br />
<br />
make menuconfig<br />
<br />
*Load the default excito configuration: From the menu, select <tt>Load an Alternate Configuration File</tt> and enter the following path:<br />
<br />
arch/arm/configs/bubba3_defconfig<br />
<br />
For the B2: <br />
<br />
arch/powerpc/configs/bubbatwo_defconfig<br />
<br />
*From now on you can customize the configuration to suit your needs (even patch the source if you're in the mood ...).<br />
<br />
*When you're satisfied, you may exit and save the configuration (it will be written in the path loaded above).<br />
<br />
Note: whenever you customize the kernel, the resulting configuration must be placed in <tt>arch/arm/configs/bubba3_defconfig</tt> (<tt>arch/powerpc/configs/bubbatwo_defconfig</tt> for the B2); only this file will be used during the compilation phase to configure the kernel. <br />
<br />
<h2> Compiling and packaging </h2><br />
<p>From the same directory, build the debian package: <br />
</p><br />
<pre class="_fck_mw_lspace">dpkg-buildpackage -us -uc -b -aarmel<br />
</pre><br />
<p>Note: If anyone knows the distinction between <tt>arm</tt> and <tt>armel</tt>, and why it's used here and not there, I'm very much interested&nbsp;! <br />
</p><p>For the B2&nbsp;: <br />
</p><br />
<pre class="_fck_mw_lspace">dpkg-buildpackage -us -uc -b -apowerpc<br />
</pre><br />
<p>The resulting package will be found in the parent directory, <tt>bubba3-kernel_2.6.39.4-13_armel.deb</tt> or <tt>bubba3-kernel_2.6.39.4-13_powerpc.deb</tt><br />
</p><br />
<p> But how can one compiling and packaging kernel modules? </p><br />
<br />
= Installing the new kernel on the device =<br />
<br />
Now you can send the debian package to your device, using scp or whatever you're confortable with. Then install it with a plain: <br />
<br />
dpkg -i bubba3-kernel_2.6.39.4-13_armel.deb<br />
<br />
(or the obvious adapt for the b2) <br />
<br />
You can now reboot your device. If your kernel panics during the boot, use your rescue key to reinstall the original excito kernel from http://b3.update.excito.org/pool/main/l/linux/</div>Csányi Pálhttps://wiki.excito.com/index.php?title=User:Cs%C3%A1nyi_P%C3%A1l&diff=1402User:Csányi Pál2014-02-17T10:19:59Z<p>Csányi Pál: Spacifying some interests of mine.</p>
<hr />
<div>I'm a teacher of technics and informatics science in a Secondary school in Serbia.<br />
My first language is Hungarian.<br />
My interests are: electronics and robotics with Arduino and Fritzing, CAD systems like FreeCAD, LibreCAD, BRL-CAD.</div>Csányi Pálhttps://wiki.excito.com/index.php?title=Building_a_custom_kernel&diff=1401Building a custom kernel2014-02-15T17:13:25Z<p>Csányi Pál: But how to install this way the kernel modules?</p>
<hr />
<div>= Introduction =<br />
<br />
This a very quick-and-dirty how-to to build (and customize) a kernel for your bubba 3 device. It also works for bubba 2 providing some small differences I will point out. <br />
<br />
= Preparing a compilation host =<br />
<br />
You could compile direclty on the B3 (resp. B2) itself, but it would take HOURS. That's why we will use a host which will be cross-compiling the kernel much quicker. Personnaly I use a virtual host in VirtualBox, but you can use whatever machine/virtualization technology. <br />
<br />
== OS install ==<br />
<br />
The host must run debian squeeze, either i386 or amd64. I will not detail the OS install phase, if you want a custom kernel, you probably know how to do that. Nothing fancy here just a plain debian install. The desktop environment is obviously not needed&nbsp;;-) . <br />
<br />
== Installing the compilation tools ==<br />
<br />
After the install is completed, install the compiling tools&nbsp;: <br />
<br />
*emdebian cross-compilation toolchain:<br />
<br />
apt-get install emdebian-archive-keyring<br />
echo "deb http://www.emdebian.org/debian/ squeeze main" &gt; /etc/apt/sources.list.d/emdebian.list<br />
apt-get update<br />
<br />
For the B3: <br />
<br />
apt-get install gcc-4.4-arm-linux-gnueabi<br />
<br />
For the B2: <br />
<br />
apt-get install gcc-4.4-powerpc-linux-gnu<br />
<br />
Note: you can install both toolchains if you have both platforms as I do&nbsp;:-) <br />
<br />
*native compiler and debian package utils&nbsp;:<br />
<br />
apt-get install build-essential devscripts<br />
<br />
*platform specific tools&nbsp;:<br />
<br />
apt-get install device-tree-compiler uboot-mkimage<br />
<br />
*development files for ncurses&nbsp;:<br />
<br />
apt-get install libncurses5-dev<br />
<br />
= Build a custom kernel =<br />
<br />
== Download and prepare the excito kernel source ==<br />
<br />
The next operations can be done as a regular user. <br />
<br />
*Prepare the environment&nbsp;: <br />
**For the B3:<br />
<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabi-<br />
<br />
**For the B2:<br />
<br />
export ARCH=powerpc<br />
export CROSS_COMPILE=powerpc-linux-gnu-<br />
<br />
*Download the source files<br />
<br />
dget -xu http://b3.update.excito.org/pool/main/l/linux/linux_2.6.39.4-13.dsc<br />
<br />
Note: the above link will work as long as excito does not upgrade the kernel. <br />
<br />
== Customizing the kernel ==<br />
<br />
Now everything is in place, time to customize the kernel: <br />
<br />
*Move into the source directory&nbsp;:<br />
<br />
cd linux-2.6.39.4<br />
<br />
*Run the curses-based configuration tool (if you wish to use xconfig, be my guest, there are a few more dependencies to install):<br />
<br />
make menuconfig<br />
<br />
*Load the default excito configuration: From the menu, select <tt>Load an Alternate Configuration File</tt> and enter the following path:<br />
<br />
arch/arm/configs/bubba3_defconfig<br />
<br />
For the B2: <br />
<br />
arch/powerpc/configs/bubbatwo_defconfig<br />
<br />
*From now on you can customize the configuration to suit your needs (even patch the source if you're in the mood ...).<br />
<br />
*When you're satisfied, you may exit and save the configuration (it will be written in the path loaded above).<br />
<br />
Note: whenever you customize the kernel, the resulting configuration must be placed in <tt>arch/arm/configs/bubba3_defconfig</tt> (<tt>arch/powerpc/configs/bubbatwo_defconfig</tt> for the B2); only this file will be used during the compilation phase to configure the kernel. <br />
<br />
<h2> Compiling and packaging </h2><br />
<p>From the same directory, build the debian package: <br />
</p><br />
<pre class="_fck_mw_lspace">dpkg-buildpackage -us -uc -b -aarmel<br />
</pre><br />
<p>Note: If anyone knows the distinction between <tt>arm</tt> and <tt>armel</tt>, and why it's used here and not there, I'm very much interested&nbsp;! <br />
</p><p>For the B2&nbsp;: <br />
</p><br />
<pre class="_fck_mw_lspace">dpkg-buildpackage -us -uc -b -apowerpc<br />
</pre><br />
<p>The resulting package will be found in the parent directory, <tt>bubba3-kernel_2.6.39.4-13_armel.deb</tt> or <tt>bubba3-kernel_2.6.39.4-13_powerpc.deb</tt><br />
</p><br />
<br />
= Installing the new kernel on the device =<br />
<br />
Now you can send the debian package to your device, using scp or whatever you're confortable with. Then install it with a plain: <br />
<br />
dpkg -i bubba3-kernel_2.6.39.4-13_armel.deb<br />
<br />
(or the obvious adapt for the b2) <br />
<br />
You can now reboot your device. If your kernel panics during the boot, use your rescue key to reinstall the original excito kernel from http://b3.update.excito.org/pool/main/l/linux/</div>Csányi Pál