Difference between revisions of "User talk:RobertCNelson"

From eLinux.org
Jump to: navigation, search
m
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Hi,
+
Please use:
 +
https://groups.google.com/forum/#!forum/beagleboard
 +
--[[User:RobertCNelson|RobertCNelson]] ([[User talk:RobertCNelson|talk]]) 16:09, 19 May 2014 (UTC)
  
I installed gnome and added Driver "fbdev" to xorg.conf.  How do I change the screen resolution.  It is at only 800x640.
+
= How do I enable veth for BeagleBoard =
  
Mike Westfield
+
I already placed a question on the Ubuntu for BeagleBone discussion page but didn't get an answer yet. Maybe you could step in. I need to use Linux containers (LXC) on my BeagleBone but the virtual network interface module veth dosn't seem to be enabled in the standard build. Could you tell me how to get it enabled?
 +
--[[User:XXLRay|XXLRay]] ([[User talk:XXLRay|talk]]) 05:10, 19 May 2014 (UTC)
  
= Setting Video Resolution =
+
It's pretty easy to enable it with my kernel scripts, so here for hints:
It first depends on what kernel version you are using.
+
http://wiki.gentoo.org/wiki/LXC#General_Options
 +
--[[User:RobertCNelson|RobertCNelson]] ([[User talk:RobertCNelson|talk]]) 16:35, 19 May 2014 (UTC)
  
You have to define it at boot time, thru u-boot, this would set 1280x720x16 for 2.6.29.
+
:Thank you for the answer but I think I did not explain the issue well enough. I already know how to compile a kernel and I think I also know which option exactly is needed.
setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootwait rootfstype=ext3 ro omapfb.mode=dvi:1280x720MR-16@60'
+
:My problem is that the pre-build Ubuntu image from this Wiki page does not have veth support. I now see two solutions to overcome this problem:
saveenv
+
:# Install Ubuntu from the given image, download the kernel sources and re-compile the kernel with veth enabled
 +
:# Adjust the image build script to create the Ubuntu beaglebone image with veth enabled.
 +
:So far I was looking at the script beagleboard.org_image.sh but could not find out whether this compiles the kernel or just downloads it. Furthermore would I prefer not to create the kernel config from scratch but just to take one that works fine and only change the veth option.
 +
:What I need to know is where I can get the kernel sources that are used for the pre-build image, where I can get the depending kernel config that creates a kernel that runs on a beaglebone and whether the script allows a direct way to set the kernel config.
 +
:--[[User:XXLRay|XXLRay]] ([[User talk:XXLRay|talk]]) 10:35, 20 May 2014 (UTC)
  
For 2.6.27/2.6.27:
 
video=omapfb:mode:1280x720@60
 
  
For 2.6.28:
+
The "beagleboard.org_image.sh" doesn't build anything, it just builds an image from *.deb packages.
omap-dss.def_disp=lcd omapfb.video_mode=1280x720MR-16@60
+
  
For 2.6.29:
+
The kernel patch-set is always available on https://rcn-ee.net/deb/ and https://github.com/RobertCNelson/bb-kernel just take the output of 'uname -r' to find the exact tag/patchset.
omapfb.mode=dvi:1280x720MR-16@60
+
--[[User:RobertCNelson|RobertCNelson]] ([[User talk:RobertCNelson|talk]]) 13:46, 20 May 2014 (UTC)
 +
:Thank you for coming back to me. I used the last days trying to get it running but unfortunately I haven't succeeded yet.
 +
:
 +
:I started to fetch the kernel sources on my own but unfortunately encounter problems when I try to build the kernel. This is what I did (on the beagle) so far:
 +
:# wget https://rcn-ee.net/deb/trusty-armhf/v3.8.13-bone54/linux-image-3.8.13-bone54_1.0trusty_armhf.deb
 +
:# dpkg -i linux-headers-3.8.13-bone54_1.0trusty_armhf.deb
 +
:# cd /usr/src/linux-headers-3.8.13-bone54
 +
:# nano .config: CONFIGH_VETH=m
 +
:# make deb-pkg
 +
: Now I encounter the error message "make[3]: *** No rule to make target `arch/arm/tools/gen-mach-types', needed by `include/generated/mach-types.h'.  Stop." and the directory /usr/src/linux-headers-3.8.13-bone54/arch/arm/tools/ is indeed empty.
 +
:
 +
:That is why I switched to using your scripts (which seems to be a lot more comfortable)
 +
:# git clone https://github.com/RobertCNelson/stable-kernel.git
 +
:# cd stable-kernel
 +
:# git checkout origin/v3.9.x -b tmp
 +
:# git config --global user.name "Dummy"
 +
:# git config --global user.email "dummy@nothing.any"
 +
:# ./build_kernel.sh
 +
:# Set "Device Drivers -> Network device support -> Virtual ethernet pair device" to 'M'
 +
:# ./tools/install_kernel.sh
 +
:Unfortunately the board still boots the old kernel.
 +
:
 +
:As follows I tried to install the new kernel by using the package method
 +
:# ./build_deb.sh
 +
:# dpkg -i ~ubuntu/stable-kernel/deploy/linux-image-3.9.11-x5_1.0cross_armhf.deb
 +
:# dpkg -i ~ubuntu/stable-kernel/deploy/linux-headers-3.9.11-x5_1.0cross_armhf.deb
 +
:Same problem as before.
 +
:I wanted to change the default kernel but there seems to be no grub installed.
 +
:# update-grub
 +
: update-grub: command not found
 +
:# ls /boot/grub
 +
ls: cannot access /boot/grub: No such file or directory
 +
:# sudo find / -name grub
 +
:# sudo find / -name grub.cfg
 +
:Are you using a different boot loader?
 +
:--[[User:XXLRay|XXLRay]] ([[User talk:XXLRay|talk]]) 09:36, 28 May 2014 (UTC)
  
Common Modes: (not every combination is supported)
+
Please read and follow:
800x600MR-16@60,
+
http://eewiki.net/display/linuxonarm/BeagleBone+Black
1280x720MR-16@60,
+
etc...
+
Main doc is here: http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=blob;f=Documentation/fb/modedb.txt;h=ec4dee75a35450376ad13442ea926eaf76de76aa;hb=HEAD
+
  
--[[User:RobertCNelson|RobertCNelson]] 19:30, 11 May 2009 (UTC)
+
You can ingore the rootfs setup, bootloader, uEnv.txt, etc.
 +
--[[User:RobertCNelson|RobertCNelson]] ([[User talk:RobertCNelson|talk]]) 13:29, 28 May 2014 (UTC)

Latest revision as of 13:29, 28 May 2014

Please use:

https://groups.google.com/forum/#!forum/beagleboard

--RobertCNelson (talk) 16:09, 19 May 2014 (UTC)

How do I enable veth for BeagleBoard

I already placed a question on the Ubuntu for BeagleBone discussion page but didn't get an answer yet. Maybe you could step in. I need to use Linux containers (LXC) on my BeagleBone but the virtual network interface module veth dosn't seem to be enabled in the standard build. Could you tell me how to get it enabled? --XXLRay (talk) 05:10, 19 May 2014 (UTC)

It's pretty easy to enable it with my kernel scripts, so here for hints:

http://wiki.gentoo.org/wiki/LXC#General_Options

--RobertCNelson (talk) 16:35, 19 May 2014 (UTC)

Thank you for the answer but I think I did not explain the issue well enough. I already know how to compile a kernel and I think I also know which option exactly is needed.
My problem is that the pre-build Ubuntu image from this Wiki page does not have veth support. I now see two solutions to overcome this problem:
  1. Install Ubuntu from the given image, download the kernel sources and re-compile the kernel with veth enabled
  2. Adjust the image build script to create the Ubuntu beaglebone image with veth enabled.
So far I was looking at the script beagleboard.org_image.sh but could not find out whether this compiles the kernel or just downloads it. Furthermore would I prefer not to create the kernel config from scratch but just to take one that works fine and only change the veth option.
What I need to know is where I can get the kernel sources that are used for the pre-build image, where I can get the depending kernel config that creates a kernel that runs on a beaglebone and whether the script allows a direct way to set the kernel config.
--XXLRay (talk) 10:35, 20 May 2014 (UTC)


The "beagleboard.org_image.sh" doesn't build anything, it just builds an image from *.deb packages.

The kernel patch-set is always available on https://rcn-ee.net/deb/ and https://github.com/RobertCNelson/bb-kernel just take the output of 'uname -r' to find the exact tag/patchset. --RobertCNelson (talk) 13:46, 20 May 2014 (UTC)

Thank you for coming back to me. I used the last days trying to get it running but unfortunately I haven't succeeded yet.
I started to fetch the kernel sources on my own but unfortunately encounter problems when I try to build the kernel. This is what I did (on the beagle) so far:
  1. wget https://rcn-ee.net/deb/trusty-armhf/v3.8.13-bone54/linux-image-3.8.13-bone54_1.0trusty_armhf.deb
  2. dpkg -i linux-headers-3.8.13-bone54_1.0trusty_armhf.deb
  3. cd /usr/src/linux-headers-3.8.13-bone54
  4. nano .config: CONFIGH_VETH=m
  5. make deb-pkg
Now I encounter the error message "make[3]: *** No rule to make target `arch/arm/tools/gen-mach-types', needed by `include/generated/mach-types.h'. Stop." and the directory /usr/src/linux-headers-3.8.13-bone54/arch/arm/tools/ is indeed empty.
That is why I switched to using your scripts (which seems to be a lot more comfortable)
  1. git clone https://github.com/RobertCNelson/stable-kernel.git
  2. cd stable-kernel
  3. git checkout origin/v3.9.x -b tmp
  4. git config --global user.name "Dummy"
  5. git config --global user.email "dummy@nothing.any"
  6. ./build_kernel.sh
  7. Set "Device Drivers -> Network device support -> Virtual ethernet pair device" to 'M'
  8. ./tools/install_kernel.sh
Unfortunately the board still boots the old kernel.
As follows I tried to install the new kernel by using the package method
  1. ./build_deb.sh
  2. dpkg -i ~ubuntu/stable-kernel/deploy/linux-image-3.9.11-x5_1.0cross_armhf.deb
  3. dpkg -i ~ubuntu/stable-kernel/deploy/linux-headers-3.9.11-x5_1.0cross_armhf.deb
Same problem as before.
I wanted to change the default kernel but there seems to be no grub installed.
  1. update-grub
update-grub: command not found
  1. ls /boot/grub

ls: cannot access /boot/grub: No such file or directory

  1. sudo find / -name grub
  2. sudo find / -name grub.cfg
Are you using a different boot loader?
--XXLRay (talk) 09:36, 28 May 2014 (UTC)

Please read and follow: http://eewiki.net/display/linuxonarm/BeagleBone+Black

You can ingore the rootfs setup, bootloader, uEnv.txt, etc. --RobertCNelson (talk) 13:29, 28 May 2014 (UTC)