Re: Howto: Build a new Debian kernel with LED support September 17, 2010 03:59PM |
Registered: 14 years ago Posts: 17 |
Re: Howto: Build a new Debian kernel with LED support September 17, 2010 04:12PM |
Admin Registered: 14 years ago Posts: 304 |
Re: Howto: Build a new Debian kernel with LED support September 18, 2010 03:48PM |
Registered: 14 years ago Posts: 19 |
..,-
Re: Howto: Build a new Debian kernel with LED support September 26, 2010 08:11PM |
cd /usr/local/codesourcery/arm-2009q3/bin/ ln -s arm-none-linux-gnueabi-objcopy objcopy rerun build process (you might need to mv System.preblabla System.map if continueing a previous build with this error)
Re: Howto: Build a new Debian kernel with LED support September 26, 2010 10:27PM |
Registered: 14 years ago Posts: 166 |
Re: Howto: Build a new Debian kernel with LED support September 27, 2010 01:42AM |
Registered: 14 years ago Posts: 37 |
Re: Howto: Build a new Debian kernel with LED support September 27, 2010 06:44AM |
Registered: 14 years ago Posts: 166 |
Evilandi666
Re: Howto: Build a new Debian kernel with LED support September 28, 2010 12:01PM |
Evilandi666
Re: Howto: Build a new Debian kernel with LED support September 28, 2010 05:48PM |
scheich
Re: Howto: Build a new Debian kernel with LED support September 30, 2010 03:22AM |
Re: Howto: Build a new Debian kernel with LED support October 01, 2010 02:15AM |
Registered: 14 years ago Posts: 6 |
cd /tmp wget http://jeff.doozan.com/debian/linux-image-2.6.32-dockstar_1.1_armel.deb cd /boot # Create the images for uBoot /usr/bin/mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-2.6.32-5 -d /boot/vmlinuz-2.6.32-dockstar /boot/uImage /usr/bin/mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs -d /boot/initrd.img-2.6.32-dockstar /boot/uInitrd
Can't open /boot/initrd.img-2.6.32-dockstar: No such file or directory
dpkg -i linux-image-2.6.32-dockstar_1.1_armel.deb Selecting previously deselected package linux-image-2.6.32-dockstar. (Reading database ... 17361 files and directories currently installed.) Unpacking linux-image-2.6.32-dockstar (from linux-image-2.6.32-dockstar_1.1_armel.deb) ... Done. Setting up linux-image-2.6.32-dockstar (1.1) ... Hmm. There is a symbolic link /lib/modules/2.6.32-dockstar/build However, I can not read it: No such file or directory Therefore, I am deleting /lib/modules/2.6.32-dockstar/build Hmm. The package shipped with a symbolic link /lib/modules/2.6.32-dockstar/source However, I can not read the target: No such file or directory Therefore, I am deleting /lib/modules/2.6.32-dockstar/source Running depmod. Examining /etc/kernel/postinst.d.
Re: Howto: Build a new Debian kernel with LED support November 24, 2010 12:18AM |
Registered: 14 years ago Posts: 128 |
Re: Howto: Build a new Debian kernel with LED support November 29, 2010 04:17PM |
Registered: 14 years ago Posts: 128 |
Re: Howto: Build a new Debian kernel with LED support November 29, 2010 06:30PM |
Registered: 14 years ago Posts: 128 |
Re: Howto: Build a new Debian kernel with LED support November 29, 2010 06:51PM |
Registered: 14 years ago Posts: 50 |
dockstar:~# cat /usr/local/bin/update_kernel_images #!/bin/sh /usr/bin/mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-2.6.32-5 -d /boot/vmlinuz-2.6.32-5-kirkwood /boot/uImage /usr/bin/mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs -d /boot/initrd.img-2.6.32-5-kirkwood /boot/uInitrd
Re: Howto: Build a new Debian kernel with LED support November 29, 2010 07:18PM |
Registered: 14 years ago Posts: 128 |
Re: Howto: Build a new Debian kernel with LED support November 29, 2010 07:25PM |
Registered: 14 years ago Posts: 50 |
dockstar 216% cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
Re: Howto: Build a new Debian kernel with LED support November 29, 2010 08:10PM |
Registered: 14 years ago Posts: 128 |
Re: Howto: Build a new Debian kernel with LED support November 29, 2010 09:27PM |
Registered: 14 years ago Posts: 264 |
I think the problem rat is having is that he hasn't succeeded in changing his arcNumber.Quote
$ dmesg | grep -i dock
[ 0.000000] Machine: Seagate FreeAgent DockStar
[ 23.537354] Registered led device: dockstar:green:health
[ 23.542778] Registered led device: dockstar:orange:misc
Re: Howto: Build a new Debian kernel with LED support November 30, 2010 06:17AM |
Registered: 14 years ago Posts: 50 |
Re: Howto: Build a new Debian kernel with LED support November 30, 2010 06:00PM |
Registered: 14 years ago Posts: 128 |
Re: Howto: Build a new Debian kernel with LED support November 30, 2010 06:13PM |
Admin Registered: 14 years ago Posts: 304 |
Re: Howto: Build a new Debian kernel with LED support January 23, 2011 11:16AM |
Registered: 14 years ago Posts: 13 |
Quote
make: invalid option -- g
make: unrecognized option `--rootcmd'
make: unrecognized option `--arch'
make: unrecognized option `--cross-compile'
make: unrecognized option `--append-to-version=-dockstar'
make: unrecognized option `--revision=1.1'
make: unrecognized option `--initrd'
Usage: make [options] [target] ...
Options:
-b, -m Ignored for compatibility.
-B, --always-make Unconditionally make all targets.
-C DIRECTORY, --directory=DIRECTORY
Change to DIRECTORY before doing anything.
-d Print lots of debugging information.
--debug[=FLAGS] Print various types of debugging information.
-e, --environment-overrides
Environment variables override makefiles.
-f FILE, --file=FILE, --makefile=FILE
Read FILE as a makefile.
-h, --help Print this message and exit.
-i, --ignore-errors Ignore errors from commands.
-I DIRECTORY, --include-dir=DIRECTORY
Search DIRECTORY for included makefiles.
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
-k, --keep-going Keep going when some targets can't be made.
-l [N], --load-average[=N], --max-load[=N]
Don't start multiple jobs unless load is below N.
-L, --check-symlink-times Use the latest mtime between symlinks and target.
-n, --just-print, --dry-run, --recon
Don't actually run any commands; just print them.
-o FILE, --old-file=FILE, --assume-old=FILE
Consider FILE to be very old and don't remake it.
-p, --print-data-base Print make's internal database.
-q, --question Run no commands; exit status says if up to date.
-r, --no-builtin-rules Disable the built-in implicit rules.
-R, --no-builtin-variables Disable the built-in variable settings.
-s, --silent, --quiet Don't echo commands.
-S, --no-keep-going, --stop
Turns off -k.
-t, --touch Touch targets instead of remaking them.
-v, --version Print the version number of make and exit.
-w, --print-directory Print the current directory.
--no-print-directory Turn off -w, even if it was turned on implicitly.
-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
Consider FILE to be infinitely new.
--warn-undefined-variables Warn when an undefined variable is referenced.
This program built for i486-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
# Make data base, printed on Sun Jan 23 12:13:28 2011
# Variables
# environment
SHELL = /bin/bash
# environment
_ = /usr/bin/make
# environment
SSH_CONNECTION = 192.100.100.182 53647 192.100.100.193 22
# environment
PATH = /usr/local/codesourcery/arm-2009q3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# environment
SSH_TTY = /dev/pts/0
# default
.FEATURES := target-specific order-only second-expansion else-if archives jobserver check-symlink
# environment
PWD = /usr/src/linux-2.6.37
# environment
HOME = /root
# environment
LOGNAME = root
# default
MAKECMDGOALS := fakeroot armel arm-none-linux-gnueabi- kernel_image
# environment
SHLVL = 3
# environment
USER = root
# environment
OLDPWD = /usr/src
# default
.VARIABLES :=
# environment
ARCH = arm
# environment
SSH_CLIENT = 192.100.100.182 53647 22
# environment
MAIL = /var/mail/root
# environment
CROSS_COMPILE = arm-none-linux-gnueabi-
# environment
PS1 = \h:\w\$
# environment
LANG = en_US.UTF-8
# environment
TERM = xterm
# variable set hash-table stats:
# Load=21/1024=2%, Rehash=0, Collisions=0/35=0%
# Pattern-specific Variable Values
# No pattern-specific variable values.
# Directories
# No files, no impossibilities in 0 directories.
# Implicit Rules
# No implicit rules.
# Files
# Not a target:
kernel_image:
# Command-line target.
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# Not a target:
fakeroot:
# Command-line target.
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# Not a target:
arm-none-linux-gnueabi-:
# Command-line target.
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# Not a target:
armel:
# Command-line target.
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# files hash-table stats:
# Load=4/1024=0%, Rehash=0, Collisions=0/4=0%
# VPATH Search Paths
# No `vpath' search paths.
# No general (`VPATH' variable) search path.
# # of strings in strcache: 0
# # of strcache buffers: 0
# strcache size: total = 0 / max = 0 / min = 4096 / avg = 0
# strcache free: total = 0 / max = 0 / min = 4096 / avg = 0
# Finished Make data base on Sun Jan 23 12:13:28 2011
Re: Howto: Build a new Debian kernel with LED support January 23, 2011 11:31AM |
Registered: 14 years ago Posts: 13 |
ingmar_k
Re: Howto: Build a new Debian kernel with LED support January 23, 2011 04:01PM |
Re: Howto: Build a new Debian kernel with LED support January 26, 2011 01:21PM |
Registered: 14 years ago Posts: 4 |
Re: Howto: Build a new Debian kernel with LED support February 02, 2011 03:51PM |
Registered: 14 years ago Posts: 48 |
william
Re: Howto: Build a new Debian kernel with LED support February 07, 2011 08:19PM |
Re: Howto: Build a new Debian kernel with LED support February 07, 2011 08:24PM |
Registered: 14 years ago Posts: 10 |
cat /etc/rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. echo none > /sys/class/leds/dockstar:orange:health/trigger echo default-on > /sys/class/leds/dockstar:green:health/trigger exit 0
dmesg | grep -i dock [ 0.000000] Linux version 2.6.32-dockstar (2.6.32) [ 2.072585] Registered led device: dockstar:green:health [ 2.077999] Registered led device: dockstar:orange:health [ 2.830441] usb usb1: Manufacturer: Linux 2.6.32-dockstar ehci_hcd
Re: Howto: Build a new Debian kernel with LED support February 23, 2011 02:01PM |
Registered: 14 years ago Posts: 4 |
fw_printenv arcNumber
fw_setenv arcNumber 2998and the correct set for dockstar will be used.