Search the web
Sign In
New User? Sign Up
ts-7000 · TS-7000 ARM SBC
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 16640 - 16670 of 16670   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#16670 From: "craignied" <craignied@...>
Date: Sat Nov 28, 2009 8:10 pm
Subject: Re: USB Wifi
craignied
Offline Offline
Send Email Send Email
 
Thanks for being so patient with my denseness, Jason.

What I did on the ubuntu box with the CF in the reader:

sudo umount /media/disk
sudo fdisk /dev/sdc
(Created new partition with n, primary 1, then wrote with w)
sudo mkfs -t ext2 -v /dev/sdc1
(Remove and reinsert CompactFlash)
sudo tar -jxvf
~/code/TS/7200/distributions/debian-sarge-256MB-05-01-2006.tar.bz2 -C
/media/disk

I then placed the CF in the 7200.  On boot it got a little farther, but still
errored out:

  /dev/ide/host0/bus0/target0/lun0: p1
  /dev/ide/host0/bus0/target0/lun0: p1
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing init memory: 72K
INIT: version 2.86 booting
Creating extra device nodes...done.
Started device management daemon v1.3.25 for /dev
  /dev/ide/host0/bus0/target0/lun0: p1
modprobe: Can't open dependencies file /lib/modules/2.4.26-ts11/modules.dep (No
such file or directory)
modprobe: Can't open dependencies file /lib/modules/2.4.26-ts11/modules.dep (No
such file or directory)
modprobe: Can't open dependencies file /lib/modules/2.4.26-ts11/modules.dep (No
such file or directory)

The device node /dev/sdcard0/disc0/part3 for the root filesystem is missing,
incorrect, or there is no entry for the root filesystem
listed in /etc/fstab.

The system is also unable to create a temporary node in
/dev/shm to use as a work-around.

This means you have to fix this manually.

CONTROL-D will exit from this shell and REBOOT the system.

Press enter for maintenance
(or type Control-D to continue):

...

If I look at /etc/fstab:

# cat /etc/fstab
proc             /proc         proc    defaults                 0    0
none            /dev/pts        devpts        gid=5,mode=620    0 0
/dev/sdcard0/disc0/part3        /       ext2    defaults,noatime,sync   1 1

Compared to the /etc/fstab of the working CF:

root@ts7000:root# cat /etc/fstab
proc             /proc         proc    defaults                 0    0
none            /dev/pts        devpts        gid=5,mode=620    0 0
/dev/hda1       /       ext2    defaults        1 1

However, if I make that change, and reboot, I still get this message:

modprobe: Can't open dependencies file /lib/modules/2.4.26-ts11/modules.dep (No
such file or directory)

Sure enough, there was no ..-ts11 file in modules, only a ts-10 one.

Any idea how to get modules/2.4.26-ts11/modules.dep?  And is this the way I
should go about setting up a CF for debian?

Again, many TIA,
Craig

#16669 From: "naturalwatt" <martin@...>
Date: Sat Nov 28, 2009 6:30 pm
Subject: Re: USB Wifi
naturalwatt
Offline Offline
Send Email Send Email
 
I wouldn't do a mkfs on a mounted file system.  I think the system is preventing
you writing directly to /dev/fd0 while it is mounted.

umount /dev/fd0
then
mkfs .. /dev/fd0


--- In ts-7000@yahoogroups.com, Jason Stahls <jason@...> wrote:
>
> craignied wrote:
> > I picked up a blank CF to play with (separate from the one that came in the
dev kit, so that if I thoroughly screw it up, it'll be OK,) put it into my
ubuntu 9.04 machine, and am tearing my hair out trying to format it in ext2.
> >
> > I plug in the CF into the USB connected reader. It mounts automagically.
> >
> > $ cat /etc/fstab
> > ...
> > /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
> > ...
> >
> > I try to make an ext2 filesystem on it
> >
> > $ sudo mkfs -t ext2 -v /dev/fd0
> > mke2fs 1.41.4 (27-Jan-2009)
> > fs_types for mke2fs.conf resolution: 'ext2', 'floppy'
> > /dev/fd0: Read-only file system while setting up superblock
> >
> > Am I going about this the right way?
>
> You've got the right idea, but the wrong device, /dev/fd0 is the first
> floppy device.  I would guess that your USB reader would show up as
> /dev/sdX where X is some letter from a to z.  IF you check the output of
> dmesg you should see the registration of the reader and what sd device
> was assigned.  If it's a multi-card reader then it might create multiple
> sdX entries one for each card slot.
>
> --
> Jason Stahls
>

#16668 From: "eric.robishaw" <eric@...>
Date: Sat Nov 28, 2009 6:24 pm
Subject: TS7800 will not boot to MTD
eric.robishaw
Offline Offline
Send Email Send Email
 
On a TS7800...

I created a modified createmtdroot that copies the debian from an nfs mounted
volume.
It seems to copy fine, however, at restart it just hangs with
  >> Booting to MTD...

If I use the original createmtdroot to copy from SD it now also fails to boot,
but this time does:
    >> Booting to MTD...
    >> MTD failed. Booting to initrd...
    and then boots to initrd

The files mounted on the mtd appear intact and fine.

Any suggestions?
Have I bricked my board?

Eric

#16667 From: Frank <fuzzoli@...>
Date: Sat Nov 28, 2009 5:54 pm
Subject: Re: Conditional Read or Control-C Cancel Script in Busybox Boot
frankuzz
Online Now Online Now
Send Email Send Email
 
Hi Eric,

I had a similar problem.  I wanted to give the ability for a
serially-connected user to press ENTER to stay in busybox.  The comments
below should be self explanatory, but here's the gist.  Put a sleeping
process into the background.  If the sleeping processes times out, then
kill the shell.  When the shell exists, there'll be a boot into full
Debian.  If the user hits ENTER, then the /shinit script kills the
sleeping process, thereby preventing the full boot.  It's really just a
matter of who kills whom first. :-)

The script below is a modified /shinit from the busybox root directory.
Don't forget to do a 'save' before trying it out!

I hope that you can modify the script to suit your needs.

-Frank


=============================  Contents of /shinit
==============================

. /ts7800.subr

timeout=10

# Put a sleep and kill in the background.
# If this subprocess doesn't get killed within
# the allotted time, then the subprocess will
# itself kill the parent shell, and the TS board
# will boot to full Debian.

(
    sleep $timeout
    kill -9 $$
) &
sleeper=$!

case $- in *i*)
         stty ospeed 115200 >/dev/null 2>&1
         echo "Finished booting in $BOOTTIME seconds"
         echo "Type 'tshelp' for help"
         echo ""
esac

echo "Will autoboot to card in $timeout seconds."
read -p "Press ENTER to stay in busybox: " ans
echo

# If the user hits ENTER within the 'timeout' value,
# kill the sleeper process so busybox won't be killed.

kill -9 $sleeper



eric.robishaw wrote:
>
>
> I have a script that runs on startup of busybox on the SD card.
>
> I need to allow the user to abort the script...
>
> i.e., :
> "Press a key in the next 10 seconds to abort this script"
> A timed-out Read (read -t 10) would be ideal but that's not supported
> in busybox linux.
>
> I'd be happy with "Press Control-C to abort this script"
> but Ctrl-C doesn't stop the script. Even tried to trap it:
>
> trap bashtrap INT
> bashtrap()
> {
> exit
> }
>
> But that doesn't work either.
>
> The script is being executed in linuxrc-sdroot:
> /lbin/tsinitnfs < $CONSOLE > $CONSOLE
>
> Any ideas?
>
> __._

#16666 From: "eric.robishaw" <eric@...>
Date: Sat Nov 28, 2009 4:32 pm
Subject: Conditional Read or Control-C Cancel Script in Busybox Boot
eric.robishaw
Offline Offline
Send Email Send Email
 
I have a script that runs on startup of busybox on the SD card.

I need to allow the user to abort the script...

i.e., :
"Press a key in the next 10 seconds to abort this script"
A timed-out Read (read -t 10) would be ideal but that's not supported in busybox
linux.

I'd be happy with "Press Control-C to abort this script"
but Ctrl-C doesn't stop the script.  Even tried to trap it:

trap bashtrap INT
bashtrap()
{
   exit
}

But that doesn't work either.


The script is being executed in linuxrc-sdroot:
/lbin/tsinitnfs < $CONSOLE > $CONSOLE



Any ideas?

#16665 From: Jason Stahls <jason@...>
Date: Sat Nov 28, 2009 2:39 pm
Subject: Re: Re: USB Wifi
j_stahls
Offline Offline
Send Email Send Email
 
craignied wrote:
> I got it to work with
>
> sudo mkfs -t ext2 -v /dev/sdc
>
> From the ubuntu box, I then issued
>
> sudo tar -jxvf debian-sarge-256MB-05-01-2006.tar.bz2 -C /media/disk
>
> as per the README in the distribution that came with the dev kit CD, and the
filesystem was written to the CF.
>
> But when I replace the (working) CF (from the dev kit) with the new CF and
turn on the 7200, I get
>
> ...
> VFS: Cannot open root device "hda1" or 03:01
> Please append a correct "root=" boot option
> Kernel panic: VFS: Unable to mount root fs on 03:01
>
> Can you tell me how to "append a correct "root=" boot option?  Are there other
things I need to do to prepare this CF?  What are the steps I need to do to boot
to the CF in the way that you describe?

Ok, that's because you didn't partition the CF card you just formatted
the whole thing with no partition table at all.  Use this

fdisk /dev/sda

Then create a primary partition the size of the card with n, writing the
changes back with w.

Then you can run mke2fs /dev/sdc1 and copy the FS image back.

--
Jason Stahls

#16664 From: "craignied" <craignied@...>
Date: Sat Nov 28, 2009 1:49 pm
Subject: Re: USB Wifi
craignied
Offline Offline
Send Email Send Email
 
> You've got the right idea, but the wrong device, /dev/fd0 is the first
> floppy device...

(Slapping my head, a Homer Simpson style, "Doh")  Thanks super, Jason.  I got it
to work with

sudo mkfs -t ext2 -v /dev/sdc

From the ubuntu box, I then issued

sudo tar -jxvf debian-sarge-256MB-05-01-2006.tar.bz2 -C /media/disk

as per the README in the distribution that came with the dev kit CD, and the
filesystem was written to the CF.

But when I replace the (working) CF (from the dev kit) with the new CF and turn
on the 7200, I get

...
VFS: Cannot open root device "hda1" or 03:01
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 03:01

Can you tell me how to "append a correct "root=" boot option?  Are there other
things I need to do to prepare this CF?  What are the steps I need to do to boot
to the CF in the way that you describe?

Many, many TIA,
Craig

#16663 From: Jason Stahls <jason@...>
Date: Sat Nov 28, 2009 6:44 am
Subject: Re: Re: USB Wifi
j_stahls
Offline Offline
Send Email Send Email
 
craignied wrote:
> I picked up a blank CF to play with (separate from the one that came in the
dev kit, so that if I thoroughly screw it up, it'll be OK,) put it into my
ubuntu 9.04 machine, and am tearing my hair out trying to format it in ext2.
>
> I plug in the CF into the USB connected reader. It mounts automagically.
>
> $ cat /etc/fstab
> ...
> /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
> ...
>
> I try to make an ext2 filesystem on it
>
> $ sudo mkfs -t ext2 -v /dev/fd0
> mke2fs 1.41.4 (27-Jan-2009)
> fs_types for mke2fs.conf resolution: 'ext2', 'floppy'
> /dev/fd0: Read-only file system while setting up superblock
>
> Am I going about this the right way?

You've got the right idea, but the wrong device, /dev/fd0 is the first
floppy device.  I would guess that your USB reader would show up as
/dev/sdX where X is some letter from a to z.  IF you check the output of
dmesg you should see the registration of the reader and what sd device
was assigned.  If it's a multi-card reader then it might create multiple
sdX entries one for each card slot.

--
Jason Stahls

#16662 From: "craignied" <craignied@...>
Date: Fri Nov 27, 2009 11:30 pm
Subject: dhcp on TS-7200
craignied
Offline Offline
Send Email Send Email
 
I have dhcp networking working if I boot to Debian, but not yet if I just boot
to 2.4.26-ts11 Linux.  The instructions on the TS site haven't gotten me there. 
Does anyone have specific instructions on how to set up the networking files to
get dhcp working on 2.4.26-ts11?

Many TIA,
Craig

#16661 From: "craignied" <craignied@...>
Date: Fri Nov 27, 2009 11:27 pm
Subject: Re: USB Wifi
craignied
Offline Offline
Send Email Send Email
 
> If you're dealing with a 7200 and CF then boot directly from the CF it's
> a lot easier then doing a pivot_root.  You can simply untar the debian
> root FS to the CF card root formatted in ext2 and put a kernel bzImage,
> zImage or vmlinux file in the root of the CF as well. Then from reboot
> you can specify hda1:/<kernel image> for image loading and
> root=/dev/hda1 on the boot line.

Thanks, Jason.  I picked up a blank CF to play with (separate from the one that
came in the dev kit, so that if I thoroughly screw it up, it'll be OK,) put it
into my ubuntu 9.04 machine, and am tearing my hair out trying to format it in
ext2.

I plug in the CF into the USB connected reader. It mounts automagically.

$ cat /etc/fstab
...
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
...

I try to make an ext2 filesystem on it

$ sudo mkfs -t ext2 -v /dev/fd0
mke2fs 1.41.4 (27-Jan-2009)
fs_types for mke2fs.conf resolution: 'ext2', 'floppy'
/dev/fd0: Read-only file system while setting up superblock

Am I going about this the right way?

Thanks for indulging this semi off topic, but integral to your solution,
question.
Craig

#16660 From: Jason Stahls <jason@...>
Date: Fri Nov 27, 2009 9:20 pm
Subject: Re: Re: USB Wifi
j_stahls
Offline Offline
Send Email Send Email
 
craignied wrote:
>> I'm confused, Craig.
>> Earlier you asked about building on OSX for a 2.4.26 kernel on TS7250.  I
sent you a toolchain.
>> Now you are talking about Debian - what kernel version?  2.6 or 2.4?
>>
>
> I'm sorry if I was confusing--I'm exploring this 7200 both booting from the
onboard memory and from the compact flash.  I'm deeply appreciative of the
toolchain, and will use it for a separate project.  For the project here, I'd
like to get the WiFi dongle to work from Debian running off the compact flash.
>

If you're dealing with a 7200 and CF then boot directly from the CF it's
a lot easier then doing a pivot_root.  You can simply untar the debian
root FS to the CF card root formatted in ext2 and put a kernel bzImage,
zImage or vmlinux file in the root of the CF as well. Then from reboot
you can specify hda1:/<kernel image> for image loading and
root=/dev/hda1 on the boot line.

--
Jason Stahls

#16659 From: "craignied" <craignied@...>
Date: Fri Nov 27, 2009 7:13 pm
Subject: Re: USB Wifi
craignied
Offline Offline
Send Email Send Email
 
> I'm confused, Craig.
> Earlier you asked about building on OSX for a 2.4.26 kernel on TS7250.  I sent
you a toolchain.
> Now you are talking about Debian - what kernel version?  2.6 or 2.4?

I'm sorry if I was confusing--I'm exploring this 7200 both booting from the
onboard memory and from the compact flash.  I'm deeply appreciative of the
toolchain, and will use it for a separate project.  For the project here, I'd
like to get the WiFi dongle to work from Debian running off the compact flash.

The system boots up in 2.4.26-ts11 then hands off to Debian 3.1.

> The one I used successfully with Busybox and 2.4.26-ts11 has size 312644 and
md5sum
> ea5d1c980a6de67caac2a3fe4935fce5.

Mine matches.

> Where I got stuck was that DHCP didn't seem to play nicely with wlan0.  Maybe
it was taking too long for the ssid to get established that udhcpc timed out.

Ugh--I really need this to work with DHCP.  Thanks super for the help,
Craig

#16658 From: Jason Stahls <jason@...>
Date: Fri Nov 27, 2009 6:58 pm
Subject: Re: Windows CE on a TS7300
j_stahls
Offline Offline
Send Email Send Email
 
hanvermolen wrote:
> Hi,
>
> I'm looking to deploy windows ce 6.0 R3 to my TS7300. I have not been able to
find any information on the subject. Can anyone help my on the issue or point me
to documentation on the subject.
>
> I've been looking through all kinds of documentation creating winCE BSPs. But
I just can't get it all to work for the ts7300

There are no BSPs for WinCE 6 on any TS products currently.  There was a
WinCE 5 BSP for one but after that TS dropped support for it.  You're
not the first to ask tho, maybe someone else who's asked here before was
successful and will pipe up?

--
Jason Stahls

#16657 From: "naturalwatt" <martin@...>
Date: Fri Nov 27, 2009 3:14 pm
Subject: Re: USB Wifi
naturalwatt
Offline Offline
Send Email Send Email
 
I'm confused, Craig.

Earlier you asked about building on OSX for a 2.4.26 kernel on TS7250.  I sent
you a toolchain.

Now you are talking about Debian - what kernel version?  2.6 or 2.4?

I have got the Iogear dongles working.  Yes you have to load the zd_b.o modules.

On the TS7250 with busybox installed (ie, not Debian) I create
/etc/init.d/modules which contain the insmod commands I need and create a link
to it from /etc/rc.d/rc3.d/S05modules.

Since I am not using Debian, there is no interfaces file - it's a bit different.

Be warned - not all zd_b.o files are the same. There are several versions
floating around even on the TS ftp site.

The one I used successfully with Busybox and 2.4.26-ts11 has size 312644 and
md5sum
ea5d1c980a6de67caac2a3fe4935fce5.

Where I got stuck was that DHCP didn't seem to play nicely with wlan0.  Maybe it
was taking too long for the ssid to get established that udhcpc timed out.

--- In ts-7000@yahoogroups.com, "craignied" <craignied@...> wrote:
>
>
> ...and the worst part is, most of the time after
>
> ifconfig wlan0 up
>
> is issued, the system hangs.
>
> Does anyone have an idea of how to get WiFi working on a TS-7200?
>
> I found these instructions for WPA2 on the WiFiBox site:
>
> 1) Bring the wlan0 interface up
>       * ifconfig wlan0 up
>  2) Generate a configuration file for wpa_supplicant to use
>       * wpa_passphrase the_essid the_password >
/etc/wpa_supplicant_custom.conf
>  3) Insert "proto=RSN" into "network" block in /etc/wpa_supplicant_custom.conf
>  4) Use wpa_supplicant to associate with AP and run it in the background (-B)
>       * wpa_supplicant -iwlan0 -Dwext -c/etc/wpa_supplicant_custom.conf -B
>  5) Dynamically assign IP
>       * udhcpc -i wlan0
>
> The problem is, if I dont do insmod zd_b.o, I can't run ifconfig wlan0 up, and
once I do, then run ifconfig wlan0 up, it hangs.
>
> Arrrrrgh!  Help!
>
> Many TIA,
> Craig
>
> Many TIA,
>

#16656 From: "craignied" <craignied@...>
Date: Fri Nov 27, 2009 3:51 am
Subject: Re: USB Wifi
craignied
Offline Offline
Send Email Send Email
 
...and the worst part is, most of the time after

ifconfig wlan0 up

is issued, the system hangs.

Does anyone have an idea of how to get WiFi working on a TS-7200?

I found these instructions for WPA2 on the WiFiBox site:

1) Bring the wlan0 interface up
       * ifconfig wlan0 up
  2) Generate a configuration file for wpa_supplicant to use
       * wpa_passphrase the_essid the_password > /etc/wpa_supplicant_custom.conf
  3) Insert "proto=RSN" into "network" block in /etc/wpa_supplicant_custom.conf
  4) Use wpa_supplicant to associate with AP and run it in the background (-B)
       * wpa_supplicant -iwlan0 -Dwext -c/etc/wpa_supplicant_custom.conf -B
  5) Dynamically assign IP
       * udhcpc -i wlan0

The problem is, if I dont do insmod zd_b.o, I can't run ifconfig wlan0 up, and
once I do, then run ifconfig wlan0 up, it hangs.

Arrrrrgh!  Help!

Many TIA,
Craig

Many TIA,

#16655 From: "craignied" <craignied@...>
Date: Thu Nov 26, 2009 9:40 pm
Subject: Re: USB Wifi
craignied
Offline Offline
Send Email Send Email
 
Some additional weirdness...

If I reboot, I get an error trying to bring wlan0 up:

root@ts7000:root# ifconfig wlan0 up
wlan0: ERROR while getting interface flags: No such device

If I reinstall the zd_b.o module, it works:

root@ts7000:root# insmod zd_b.o
ZD1211B - http://zd1211.ath.cx/ - r83
Based on www.zydas.com.tw driver version 2.5.0.0
usb.c: registered new driver zd1211b
Release Ver = 4810
EEPORM Ver = 4810
PA type: 0
Airoha AL2230S_RF
AllowedChannel = 000107ff
Region:16

How do I get the zd_b.o module install to "stick"?

Again, many TIA,
Craig

#16654 From: "hanvermolen" <hanvermolen@...>
Date: Thu Nov 26, 2009 6:39 pm
Subject: Windows CE on a TS7300
hanvermolen
Offline Offline
Send Email Send Email
 
Hi,

I'm looking to deploy windows ce 6.0 R3 to my TS7300. I have not been able to
find any information on the subject. Can anyone help my on the issue or point me
to documentation on the subject.

I've been looking through all kinds of documentation creating winCE BSPs. But I
just can't get it all to work for the ts7300

Help would be much appreciated. Thanks in advance.

Kind regards,
Han Vermolen

#16652 From: "craignied" <craignied@...>
Date: Thu Nov 26, 2009 8:56 pm
Subject: USB Wifi
craignied
Offline Offline
Send Email Send Email
 
Hi Network Gurus,

I have the IOGear USB WiFi dongle from TS connected to a TS-7200 running Debian
Linux.  I'd like to have the TS-7200 connect to a password protected WPA2
Personal network.  I went through the instructions

insmod usbcore
insmod pcipool
insmod usb-ohci
insmod usb-ohci-ep93xx
insmod scsi_mod
insmod sd_mod
insmod zd_b.o
ifconfig wlan0 up

I added the following to /etc/network/interfaces

auto wlan0
iface wlan0 inet dhcp
         wpa-ssid mynetworkname
         wpa-psk mynetworkpassword

I wasn't sure of the syntax--do you put the name/password in quotes (I didn't)

On Linux boot, I'm still getting

Failed to bring up wlan0.

Any ideas on what I'm doing wrong / how to troubleshoot this?  I'd love to be
able to unyolk the TS-7200 from the ethernet cable connection.

Thanks super,
Craig

#16651 From: "Blair" <bburtan65@...>
Date: Thu Nov 26, 2009 2:51 pm
Subject: Re: Now, how?
bburtan65
Offline Offline
Send Email Send Email
 
Creating the disk image isn't a big deal.  You just have to remember to mount it
after a reboot or XCode will complain.  Personally I like the convenience of
working in XCode.  I use Parallels only when I absolutely have to.  It's gotten
so damn slow as to be nearly unusable.

You do have to do a couple of tricks in XCode (build rules and build phases) to
get everything to work properly and make it use the right cross-tool
executables.  I suppose I should delve deeper into the inner workings of XCode
to integrate that better.  I know it's doable because Intel makes some
high-performance compilers that work seamlessly in XCode.

But, IMHO, this is all one-time stuff.  The nuances of building a kernel are
more inscrutable.  What version of GCC do you need?  What version of glibC do
you need?  And so on.  Then, what version of the kernel works and why?  How do
you know you need a later version?  And once you've built it, how do you test it
to make sure everything works properly?  Too much guesswork, IMHO.  Too much
digging on the web for little reward and far too many partial answers.  "How do
you do X?"  "I did it and it worked for me."  "Uh yeah, thanks but HOW did you
do it?"

>
> The workaround is to create a case-sensitive filesystem on a disk image and
mount that.  I can't be bothered to do that, so I use Ubuntu 8.04 in a Parallels
Desktop virtual machine which allows me to use a prepackaged cross compiler.
>

#16650 From: "craignied" <craignied@...>
Date: Wed Nov 25, 2009 8:00 pm
Subject: Re: Now, how?
craignied
Offline Offline
Send Email Send Email
 
> Do you want the crosstool.tar.gz file?
>
> Martin

Thanks super, Martin, and thanks for the detailed instructions!  I'd love the
crosstool, could you email it to me at craignied _at_ gmail.com?
Craig

#16649 From: "naturalwatt" <martin@...>
Date: Wed Nov 25, 2009 6:49 pm
Subject: Re: Now, how?
naturalwatt
Offline Offline
Send Email Send Email
 
Hi Craig.

I am successfully using a cross-tool chain I compiled myself on OSX.  It works
for the TS7250 using the default 2.4.26 kernel.

I want to move to the new TS7500 as a platform, which has the 2.6.24 kernel.  It
is not possible to build the toolchain on OSX, because there is place where
there are two files of the same name but differing in case.  The workaround is
to create a case-sensitive filesystem on a disk image and mount that.  I can't
be bothered to do that, so I use Ubuntu 8.04 in a Parallels Desktop virtual
machine which allows me to use a prepackaged cross compiler.

I had some grief compiling it so it might be best if I upload a tar.gz to the
files area of this group, if I can.  It's 29MB.

I'll also put some sample Makefiles in as guidance.

I use these environment variables defined in .profile:
CROSSTOOL=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu
ARM=arm-unknown-linux-gnu

This means my makefile looks like this:

CC=$(CROSSTOOL)/$(ARM)/bin/gcc
NAME=victron

all: $(NAME)
	 $(CROSSTOOL)/$(ARM)/bin/strip $(NAME)
	 mv $(NAME) $(NAME).new

$(NAME): $(NAME).c


This creates the executable as a stripped file called in this case victron.new;
just a local convention.

Do you want the crosstool.tar.gz file?

Martin



--- In ts-7000@yahoogroups.com, "craignied" <craignied@...> wrote:
>
> > If you look back in the archives I remember hearing about a few users
> > that had a crosstool chain built up and working in Xcode.
>
> Thanks, Jason.  I trolled the archives, and all I saw was pain without
resolution.  Anyone out there successfully using OS X as a development platform?
If so, how?
>
> As I am a newbie, I may just use vmware to set up a linux box to get things
rolling.  Two newbie questions:
>
> 1. What flavor of linux is best?
> 2. Is there a simple hello world (or equivalent) tutorial on how to set up the
cross compile environment on it that takes you through compiling, transferring
and running a program?
>
> Many TIA,
> Craig
>

#16648 From: "Blair" <bburtan65@...>
Date: Wed Nov 25, 2009 3:28 pm
Subject: Re: Now, how?
bburtan65
Offline Offline
Send Email Send Email
 
I do app development on my Mac, under XCode, using a cross tool generated by
crosstool-ng.  That works pretty well although there are some bit-wise
arithmetic differences between the code generate by that and the compiler that
lives on the TS Debian dongle.

However, when it comes to compiling a kernel, I haven't had much luck with the
Mac cross tool.  Apparently there are minimum version requirements for Linux 2.6
which I have yet to determine.  And the 2.4 kernel doesn't build either so I
ended up building 2.4 on the TS Debian dongle.  Any suggestions here would be
welcome.

For some reason curses isn't installed on the TS dongle so I can't run make
menuconfig on the Debian dongle.

There are so many undocumented or poorly documented pitfalls and procedures that
one spends a great deal of time reinventing the wheel than doing actual work.

What I'd like to know is what versions/flavors of the cross tool components are
required to build the most recent Linux 2.6 that TS has on their FTP site and
what settings e.g. EABI/OABI, etc. are required.  Better yet, how does one
determine these settings?  Guessing is futile, IMHO.

#16647 From: Craig <ssbxfire@...>
Date: Wed Nov 25, 2009 2:58 pm
Subject: Re: Re: Now, how?
ssbxfire
Offline Offline
Send Email Send Email
 
Fusion is your friend here...much better than bootcamp

craignied wrote:
 

> If you look back in the archives I remember hearing about a few users
> that had a crosstool chain built up and working in Xcode.

Thanks, Jason. I trolled the archives, and all I saw was pain without resolution. Anyone out there successfully using OS X as a development platform? If so, how?

As I am a newbie, I may just use vmware to set up a linux box to get things rolling. Two newbie questions:

1. What flavor of linux is best?
2. Is there a simple hello world (or equivalent) tutorial on how to set up the cross compile environment on it that takes you through compiling, transferring and running a program?

Many TIA,
Craig



#16646 From: Janne Mäntyharju <janne.mantyharju@...>
Date: Wed Nov 25, 2009 2:29 pm
Subject: Re: TS-7800 kernel from Alexander Clouters repository [SOLVED]
antibore2
Offline Offline
Send Email Send Email
 
Sorry to reply to my own post, but I should have paid more attention to booting
woes page (http://ts78xx.digriz.org.uk/booting-woes). Followed the checklist and
everything is working great now.

-- Janne

On 25.11.2009, at 13.11, Janne Mäntyharju wrote:

> Hi!
>
> I tried compiling new kernel from Alexander Clouters GIT repository
> (http://git.wormnet.eu/?p=alex-ts78xx.git;a=summary), using instructions
> on page http://ts78xx.digriz.org.uk/kernel. However the TS-7800 freezes
> after loading linux and booting kernel messages. I did not modify the
> default config at all. Has someone had success with this repository? Are
> there any else more up to date kernel versions except the ancient
> version provided by Technologics?
>
> The reason why I tried to use that repository is that it should include
> support for hardware encryption engine, which I should be evaluating for
> new project.
>
> -- Janne Mäntyharju
>

#16645 From: "craignied" <craignied@...>
Date: Wed Nov 25, 2009 11:36 am
Subject: Re: Now, how?
craignied
Offline Offline
Send Email Send Email
 
> If you look back in the archives I remember hearing about a few users
> that had a crosstool chain built up and working in Xcode.

Thanks, Jason.  I trolled the archives, and all I saw was pain without
resolution.  Anyone out there successfully using OS X as a development platform?
If so, how?

As I am a newbie, I may just use vmware to set up a linux box to get things
rolling.  Two newbie questions:

1. What flavor of linux is best?
2. Is there a simple hello world (or equivalent) tutorial on how to set up the
cross compile environment on it that takes you through compiling, transferring
and running a program?

Many TIA,
Craig

#16644 From: "Janne Mäntyharju" <janne.mantyharju@...>
Date: Wed Nov 25, 2009 11:11 am
Subject: TS-7800 kernel from Alexander Clouters repository
antibore2
Offline Offline
Send Email Send Email
 
Hi!

I tried compiling new kernel from Alexander Clouters GIT repository
(http://git.wormnet.eu/?p=alex-ts78xx.git;a=summary), using instructions
on page http://ts78xx.digriz.org.uk/kernel. However the TS-7800 freezes
after loading linux and booting kernel messages. I did not modify the
default config at all. Has someone had success with this repository? Are
there any else more up to date kernel versions except the ancient
version provided by Technologics?

The reason why I tried to use that repository is that it should include
support for hardware encryption engine, which I should be evaluating for
new project.

-- Janne Mäntyharju

#16643 From: Jason Stahls <jason@...>
Date: Wed Nov 25, 2009 3:50 am
Subject: Re: Now, how?
j_stahls
Offline Offline
Send Email Send Email
 
craignied wrote:
> Sorry for this newbie question.
>
> My most excellent TS-7200 and dev kit arrived in the mail today, and I
connected it to my Mac laptop via a USB/serial connector and fired up a terminal
with minicom, and watched the magic of the TS-7200 boot up.  I logged in as
root, and wandered about with various linux commands.
>
> Now, of course, I want to compile and run a "hello world" program.
>
> On the CD that came with the dev kit, I found a bunch of crosstool-..tar.bz
files, which were either cygwin (memories of painful past days that I'd prefer
not to repeat) or "linux", which I take to be some variant of debian.
>
> Question: Must I compile on the host in debian linux, then transfer to the
TS-7200?  Or can I build the tools on my Leopard OS X box (which I'd very much
prefer)?  If so, how?  I couldn't find anywhere the "crosstool 0.28 tarball"
with its "demo-arm.sh" alluded to in the README of the cross-toolchains
directory of the dev kit CD
>
> Please help, as I'm salivating thinking of programming this thing...

If you look back in the archives I remember hearing about a few users
that had a crosstool chain built up and working in Xcode.

--
Jason Stahls

#16642 From: "craignied" <craignied@...>
Date: Wed Nov 25, 2009 3:07 am
Subject: Now, how?
craignied
Offline Offline
Send Email Send Email
 
Sorry for this newbie question.

My most excellent TS-7200 and dev kit arrived in the mail today, and I connected
it to my Mac laptop via a USB/serial connector and fired up a terminal with
minicom, and watched the magic of the TS-7200 boot up.  I logged in as root, and
wandered about with various linux commands.

Now, of course, I want to compile and run a "hello world" program.

On the CD that came with the dev kit, I found a bunch of crosstool-..tar.bz
files, which were either cygwin (memories of painful past days that I'd prefer
not to repeat) or "linux", which I take to be some variant of debian.

Question: Must I compile on the host in debian linux, then transfer to the
TS-7200?  Or can I build the tools on my Leopard OS X box (which I'd very much
prefer)?  If so, how?  I couldn't find anywhere the "crosstool 0.28 tarball"
with its "demo-arm.sh" alluded to in the README of the cross-toolchains
directory of the dev kit CD

Please help, as I'm salivating thinking of programming this thing...

Many TIA,
Craig

#16641 From: pierrot lafouine <pierrotlafouine@...>
Date: Wed Nov 25, 2009 1:14 am
Subject: RE: Re: TS7300 splash screen
pierrotlafouine
Offline Offline
Send Email Send Email
 
Hi Charlie
How can we know what software does what to these values ?  So we can track down the faulty software and fix issue ?

A general question :
Can I copy the new splash.gz file to fastboot partition ?
Thanks,

Pierre

Computers in the future may weigh no more than 1.5 tons
(Popular Mechanics, 1949)






To: ts-7000@yahoogroups.com
From: charlie@...
Date: Tue, 24 Nov 2009 10:02:27 -0800
Subject: Re: [ts-7000] Re: TS7300 splash screen

 
That's a typical problem with a lot of bad BMP import/export tools if the
BMP header height is negative, the image is meant to be flipped, if its
positive, it isn't.

> Hi Pierre,
>
> Check if the dithering is enabled (#define dither), and try again with it
> disabled. This seems to not work for some people/systems.
>
> What type of system are you using to create the original BMP? I'm using a
> Windows PC. I don't know why your images may be flipped. You could always
> flip the image before converting it, but that's juts masking the problem.
>
> Regards,
>
> PJE
>





Get a great deal on Windows 7 and see how it works the way you want. See the Windows 7 offers now.

#16640 From: "Charlie Wallace" <charlie@...>
Date: Tue Nov 24, 2009 6:02 pm
Subject: Re: Re: TS7300 splash screen
charliewallacex
Offline Offline
Send Email Send Email
 
That's a typical problem with a lot of bad BMP import/export tools if the
BMP header height is negative, the image is meant to be flipped, if its
positive, it isn't.

> Hi Pierre,
>
> Check if the dithering is enabled (#define dither), and try again with it
> disabled. This seems to not work for some people/systems.
>
> What type of system are you using to create the original BMP? I'm using a
> Windows PC. I don't know why your images may be flipped. You could always
> flip the image before converting it, but that's juts masking the problem.
>
> Regards,
>
> PJE
>

Messages 16640 - 16670 of 16670   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help