Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crossdev MIPS, mips-headers deleted [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
Atle
Apprentice
Apprentice


Joined: 16 Sep 2004
Posts: 179

PostPosted: Sun Sep 05, 2010 2:08 pm    Post subject: Crossdev MIPS, mips-headers deleted [solved] Reply with quote

Hi everybody,

I'm trying to set up a crossdev environemnt for compiling programs for the MIPS architecture.
(Got a media player sporting something reported as MIPS 24K V7.8 CPU)

But crossdev fails during stage 1:
Code:

# crossdev -S -s1 --target mips-r3000-linux-gnu
--------------------------------------------------------------------------------------------------------------------------------------------------
 * crossdev version:      20100620
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   mips
 * Target System:         mips-r3000-linux-gnu
 * Stage:                 1 (C compiler only)

 * binutils:              binutils-[stable]
 * gcc:                   gcc-[stable]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/mips-r3000-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/mips-r3000-linux-gnu
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  - 
 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...                                                                       [ ok ]
 * Log: /var/log/portage/cross-mips-r3000-linux-gnu-binutils.log
 * Emerging cross-binutils ...                                                                                                              [ ok ]
 * Log: /var/log/portage/cross-mips-r3000-linux-gnu-linux-headers-quick.log
 * Emerging cross-linux-headers-quick ...                                                                                                   [ ok ]
 * Log: /var/log/portage/cross-mips-r3000-linux-gnu-glibc-headers.log
 * Emerging cross-glibc-headers ...

 * glibc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-mips-r3000-linux-gnu-info.log
 * /var/log/portage/cross-mips-r3000-linux-gnu-glibc-headers.log


And checking the latter logfile, the problem is:
Code:

emerge: there are no ebuilds to satisfy ">=cross-mips-r3000-linux-gnu/mips-headers-2.6.10".


Checking http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-kernel/mips-headers/ shows there are no headers any more. They have all been deleted. Which is confirmed by the log for one of the deleted packages:

Code:

Revision 1.3
Wed Dec 17 05:45:47 2008 UTC (20 months, 2 weeks ago) by kumba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
mips-headers is quite dead, so remove it from portage (hasn't been updated in over a year).
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-kernel/mips-headers/


What this seems to mean to me is that I can't use gentoo crossdev for mips?
And what I don't understand is why the packages has to be deleted. Even though they're not maintained any more, they are still useful?

If I can't use gentoo crossdev, does anyone have a hint how to set up a cross developing environment for the mips architecture?


Last edited by Atle on Wed Sep 08, 2010 6:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Sun Sep 05, 2010 7:28 pm    Post subject: Reply with quote

This should work:

crossdev -t mips -v -b --b 2.20.1-r1 --g 4.4.4-r1 --k 2.6.27-r2 --l 2.10.1-r1 --without-headers

Also, are you sure you need big-endian? If not, use "-t mipsel"
Back to top
View user's profile Send private message
Atle
Apprentice
Apprentice


Joined: 16 Sep 2004
Posts: 179

PostPosted: Sun Sep 05, 2010 8:38 pm    Post subject: Reply with quote

Thanks, will try that tomorrow.

What I need is to be able to create files like this:
Code:

$ readelf -h busybox
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           MIPS R3000
  Version:                           0x1

Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Mon Sep 06, 2010 4:56 am    Post subject: Reply with quote

then use "-t mipsel" to create little-endian binaries by default.
Back to top
View user's profile Send private message
Atle
Apprentice
Apprentice


Joined: 16 Sep 2004
Posts: 179

PostPosted: Wed Sep 08, 2010 6:47 pm    Post subject: Reply with quote

Most excellent! I've managed to compile a simple "hello world", and execute it on the media player!

Thanks a lot for the help!
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Wed Sep 08, 2010 7:03 pm    Post subject: Reply with quote

My pleasure.

If I may ask: which device? I'm always on the lookout for new MIPS toys!
Back to top
View user's profile Send private message
Atle
Apprentice
Apprentice


Joined: 16 Sep 2004
Posts: 179

PostPosted: Thu Sep 09, 2010 4:15 am    Post subject: Reply with quote

‎TrekStor MovieStation Antarius PLUS‎

Code:


/ # uname -a
Linux Venus 2.6.12.6-VENUS #1 Mon Jul 27 09:24:45 CST 2009 mips unknown

/ # cat /proc/cpuinfo
system type             : Realtek Venus
processor               : 0
cpu model               : MIPS 24K V7.8
BogoMIPS                : 269.51
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes
ASEs implemented        : mips16
VCED exceptions         : not available
VCEI exceptions         : not available

/ # cat /proc/meminfo
MemTotal:       120312 kB
MemFree:         41336 kB
Buffers:            60 kB
Cached:           4756 kB
SwapCached:          0 kB
Active:           6348 kB
Inactive:         1936 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       120312 kB
LowFree:         41336 kB
SwapTotal:          32 kB
SwapFree:           32 kB
Dirty:               0 kB
Writeback:           0 kB
Mapped:           5932 kB
Slab:             3472 kB
CommitLimit:     60188 kB
Committed_AS:     6984 kB
PageTables:        380 kB
VmallocTotal:  1048548 kB
VmallocUsed:       884 kB
VmallocChunk:  1047180 kB

# cat /proc/swaps
Filename                                Type            Size    Used    Priority
/mnt/rd/swap.img                        file            32      0       -1

/ # cat /proc/nandinfo
nand_PartNum:HY27UF081G2A
nand_size:134217728
chip_size:134217728
block_size:131072
page_size:2048
oob_size:64
ppb:64
RBA:51
BBs:0

/ # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 01840000 00020000 "Partition_000"
mtd1: 04160000 00020000 "/"
mtd2: 02000000 00020000 "/usr/local/etc"
mtd3: 00660000 00020000 "Partition_003"
mtd4: 08000000 00020000 "disc"

# cat /etc/mtab
rootfs / rootfs rw 0 0
/dev/root / yaffs2 ro,noatime 0 0
none /dev devfs rw 0 0
none /proc proc rw,nodiratime 0 0
devpts /dev/pts devpts rw 0 0
none /sys sysfs rw 0 0
/dev/mtdblock/2 /usr/local/etc yaffs2 rw,noatime 0 0
none /tmp ramfs rw 0 0
/dev/rd/0 /mnt/rd vfat rw,nodiratime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1 0 0


What I liked about it is that it is fan less, can do 1080p on hdmi and has s/pdif. I have not really used is as intended, instead I'd like to turn it into a pure music player.
There is also a version called ‎TrekStor MovieStation Antarius, it only does 1080i, but has wifi.
Back to top
View user's profile Send private message
emc
Guru
Guru


Joined: 02 Jul 2004
Posts: 564
Location: Cracow, Poland

PostPosted: Mon Nov 15, 2010 8:12 am    Post subject: Reply with quote

the same HW and SW has Hyundai Mbox TP01. It will be nice to have there an 'apt' or something to update. I found few info:
http://rtd1261.wikidot.com/linux
http://forum.xbmc.org/showthread.php?t=58718
http://forum.xtreamer.net/mediawiki-1.15.1/index.php/Xtreamer_Hardware_Specifications
Back to top
View user's profile Send private message
hoohoo
n00b
n00b


Joined: 05 Dec 2010
Posts: 1

PostPosted: Sun Dec 05, 2010 5:32 am    Post subject: Video processor? Reply with quote

Hi there,

Have read up on the CPU and board but not found out what the video processor is.

Does anyone know what it is?

Thanks, and thanks for all the work you people have done on this device! I'm buying one tomorrow. It looks like a very nice and small Linux platform to hack on.

-hoohoo
Back to top
View user's profile Send private message
zeronullity
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2010
Posts: 103

PostPosted: Tue Nov 04, 2014 12:06 pm    Post subject: Re: Video processor? Reply with quote

hoohoo wrote:
Hi there,

Have read up on the CPU and board but not found out what the video processor is.

Does anyone know what it is?

Thanks, and thanks for all the work you people have done on this device! I'm buying one tomorrow. It looks like a very nice and small Linux platform to hack on.

-hoohoo


-For Future Reference

The Realtek Mips 24k (Code-name Venus) is a SoC, the GPU is on the chip, it's a "PowerVR" designed by Imagination Technologies (formerly VideoLogic). However over 20 companies have authorization to reproduce it & use it. Realtek chips such as this one are extremely common among media players .. many of them use a SoC (realtek) mips /w PowerVR gpu. I couldn't even begin to count the different generic brands/models of media players that use this type of chip.. You'll find the source code to these players closed & unavailable.. especially when it comes to kernel/modules & the video player itself.. Most use the the same software just slightly different versions from chip to chip with a different GUI. The GUI being a group of scripts/xml/png files ran by the video player engine. The video player engine often has the name "DvdPlayer". It does everything from playing video to audio and even connects the player to wi-fi.. along with a slew of other tasks on the newer 1186 chips. I've found most players based on the "DvdPlayer" engine are highly insecure.. and caution should be used when deployed on secure networks.
Back to top
View user's profile Send private message
legacy
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2012
Posts: 144

PostPosted: Thu Nov 06, 2014 12:52 am    Post subject: Reply with quote

any brochure around about this board ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum