Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1556242
  • 博文数量: 290
  • 博客积分: 3468
  • 博客等级: 中校
  • 技术积分: 3461
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-28 22:21
文章分类

全部博文(290)

文章存档

2016年(13)

2015年(3)

2014年(42)

2013年(67)

2012年(90)

2011年(75)

分类: LINUX

2016-09-06 14:04:57

ubuntu是非常好用的Linux发行版本,我使用它有4、5年了。
有了他无须windows。
龙芯要想成功,我想用ubuntu Linux发行版本是非常合适的。
最近参加龙芯大赛,龙芯邮寄来一台笔记本8089,因此想试试。


1.寻找方法
ubuntu 支持arm,powerpc,x86,x64等。但不支持mips,真是怪异。
我就寻在ubuntu 支持arm的文档,几乎没有。
少有的几句是,ubuntu源于debian,移植方法和debian雷同。
debian是支持,arm,mips,x86,x64,powerpc....很多处理器的。


一般来说应该是交叉编译,常见的方法是配置交叉环境,我认为用apt-build world?
,但我询问国外移植ubuntu的arm人员说,他们都本地编译,交叉编译会出错。


如是我企图用apt-build world在龙芯本地编译ubuntu 10.10。


2.第一种方法失败
apt-build 会先从source.list下载源,因此我们需要更改source.list
我将龙芯原本的source.list的deb-src都删除了,用ubuntu 的源代替。
apt-build方法我不再在这里多说。
apt-build world 不行,很多配置都不对。。。总报失败。
由于我对apt-build的原理不了解(它是一个脚本),最后还是放弃了apt-build


3.改用apt-get source成功一个案例
首先修改source.list 将所有的龙芯deb-src删除,添加ubuntu 8.04(版本低一点更容易成功)
的源(注意仅仅deb-src用ubuntu 8.04)。
apt-get update


选择一个软件aalib做实验。
apt-get source aalib
apt-get build-dep
cd  aalib-1.4p5
debuild -us -us
结果成功,见下面产生了 libaa1_1.4p5-33ubuntu1_mipsel.deb
我将继续尝试几个软件,如果成功,希望大家和我一起做。
人多力量大。
------------------
编译结果如下。


aalib-1.4p5                           libaa1-dbg_1.4p5-33ubuntu1_mipsel.deb
aalib_1.4p5-33ubuntu1.diff.gz         libaa1-dev_1.4p5-33ubuntu1_mipsel.deb
aalib_1.4p5-33ubuntu1.dsc             libaa-bin_1.4p5-33ubuntu1_mipsel.deb
aalib_1.4p5-33ubuntu1_mipsel.build    pidgin-2.4.1
aalib_1.4p5-33ubuntu1_mipsel.changes  pidgin_2.4.1-1ubuntu2.diff.gz
aalib_1.4p5.orig.tar.gz               pidgin_2.4.1-1ubuntu2.dsc
libaa1_1.4p5-33ubuntu1_mipsel.deb     pidgin_2.4.1.orig.tar.gz

我才编译几个,速度不快,本地编译的。
我干脆将8.04的源下载到本地。
http://cdimage.ubuntu.com/releas ... tu-8.04.3-src-1.iso
龙芯 debian lenny 5.06
http://cdimage.debian.org/debian ... 06-mipsel-DVD-1.iso

#!/bin/bash

b () {
        apt-get build-dep $1 -y
        apt-get -b source $1 -y
}


b gnome-control-center 
exit;
b gnome-about
b python-gmenu
b gnome-menus
b gnome-panel
b launchpad-integration
b python-cairo
b python-cairo-dbg
b python-gobject
b python-gobject-dbg
b python-numeric
b python-numeric-dbg
b python-gtk2-dbg

奇怪 我将/var/lib/apt/lists/*source  里面的 gnome-control-center,换个名字就能找到 包信息

需要编译的包
acl
acpi
acpi-support
acpid
adduser
alacarte
alsa-base
alsa-utils
anacron
apmd
app-install-data
app-install-data-commercial
apparmor
apparmor-utils
apport
apport-gtk
apt
apt-build
apt-utils
aptitude
apturl
aspell
aspell-en
at
at-spi
atftp
atftpd
autoconf
automake1.7
autotools-dev
avahi-autoipd
avahi-daemon
base-files
base-passwd
bash
bash-completion
bc
belocs-locales-bin
bind9-host
binutils
binutils-mipsel-linux-gnu
binutils-static
bison
bluez-audio
bluez-cups
bluez-gnome
bluez-utils
bogofilter
bogofilter-bdb
bogofilter-common
brasero
brltty
brltty-x11
bsdmainutils
bsdutils
bug-buddy
build-essential
busybox-initramfs
bzip2
ca-certificates
capplets-data
cdbs
cdparanoia
cdrdao
cli-common
comerr-dev
command-not-found
command-not-found-data
compiz
compiz-core
compiz-fusion-plugins-extra
compiz-fusion-plugins-main
compiz-gnome
compiz-plugins
compizconfig-backend-gconf
console-setup
console-terminus
console-tools
consolekit
contact-lookup-applet
coreutils
cpio
cpp
cpp-4.2
cramfsprogs
cron
cups-pdf
cupsddk
cupsddk-drivers
cupsys
cupsys-bsd
cupsys-client
cupsys-common
cupsys-driver-gutenprint
dash
dbus
dbus-x11
dc
dcraw
debconf
debconf-i18n
debhelper
debiandoc-sgml
debianutils
defoma
deskbar-applet
desktop-file-utils
devscripts
dhcdbd
dhcp3-client
dhcp3-common
dia
dia-common
dia-libs
dictionaries-common
dictionaries-common-dev
diff
diffstat
displayconfig-gtk
diveintopython
dmidecode
dmz-cursor-theme
dnsutils
doc-base
docbook
docbook-dsssl
docbook-to-man
docbook-utils
docbook-xml
docbook-xsl
dosfstools
dpatch
dpkg
dpkg-dev
dvd+rw-tools
e2fslibs
e2fsprogs
ed
eject
ekiga
eog
esound-common
espeak
espeak-data
ethtool
evince
evolution
evolution-common
evolution-data-server
evolution-data-server-common
evolution-exchange
evolution-plugins
evolution-webcal
example-content
f-spot
fakeroot
fast-user-switch-applet
fdupes
fdutils
file
file-roller
findutils
finger
firefox
firefox-3.0
firefox-3.0-gnome-support
firefox-gnome-support
flashplugin-nonfree
flex
fontconfig
fontconfig-config
foo2zjs
foomatic-db
foomatic-db-engine
foomatic-db-hpijs
foomatic-filters
fortune-mod
fortunes-min
freeglut3
friendly-recovery
ftp
fuse-utils
g++
g++-4.2
gamin
gcalctool
gcc
gcc-4.2
gcc-4.2-base
gcc-4.3-mipsel-linux-gnu-base
gconf-editor
gconf2
gconf2-common
gdb
gdebi
gdebi-core
gdm
gedit
gedit-common
genisoimage
gettext
gettext-base
ghostscript
ghostscript-x
gimp
gimp-data
gimp-gnomevfs
gimp-help-common
gimp-help-en
gimp-python
gksu
glibc-doc
gnome-about
gnome-accessibility-themes
gnome-app-install
gnome-applets
gnome-applets-data
gnome-cards-data
gnome-common
gnome-control-center
gnome-desktop-data
gnome-doc-utils
gnome-games
gnome-games-data
gnome-icon-theme
gnome-keyring
gnome-mag
gnome-media
gnome-media-common
gnome-menus
gnome-mime-data
gnome-mount
gnome-netstatus-applet
gnome-nettool
gnome-orca
gnome-panel
gnome-panel-data
gnome-pilot
gnome-pilot-conduits
gnome-pkg-tools
gnome-power-manager
gnome-screensaver
gnome-session
gnome-settings-daemon
gnome-spell
gnome-system-monitor
gnome-system-tools
gnome-terminal
gnome-terminal-data
gnome-themes
gnome-user-guide
gnome-utils
gnome-volume-manager
gnupg
gpgv
grep
groff-base
grub
gsfonts
gsfonts-x11
gstreamer0.10-alsa
gstreamer0.10-gnomevfs
gstreamer0.10-plugins-base
gstreamer0.10-plugins-base-apps
gstreamer0.10-plugins-good
gstreamer0.10-pulseaudio
gstreamer0.10-tools
gstreamer0.10-x
gtk-doc-tools
gtk2-engines
gtk2-engines-murrine
gtk2-engines-pixbuf
gtk2-engines-ubuntulooks
gtkhtml3.14
gucharmap
guidance-backends
guile-1.6-libs
gvfs
gvfs-backends
gvfs-fuse
gzip
hal
hal-cups-utils
hal-info
hdparm
help2man
hicolor-icon-theme
hostname
hotkey-setup
hpijs
hplip
hplip-data
html2text
human-icon-theme
human-theme
hwtest
hwtest-gtk
iamerican
ibritish
ifupdown
im-switch
indent
info
initramfs-tools
initscripts
inputattach
intltool
intltool-debian
iproute
iptables
iputils-arping
iputils-ping
iputils-tracepath
iso-codes
ispell
jade
jadetex
jockey-common
jockey-gtk
kchmviewer
kdelibs-data
kdelibs4c2a
klibc-utils
klogd
landscape-client
language-pack-en
language-pack-en-base
language-pack-gnome-en
language-pack-gnome-en-base
language-pack-gnome-zh
language-pack-gnome-zh-base
language-pack-zh
language-pack-zh-base
language-selector
language-selector-common
language-support-en
language-support-fonts-zh
language-support-input-zh
language-support-translations-en
language-support-translations-zh
language-support-writing-en
language-support-zh
laptop-detect
laptop-mode-tools
launchpad-integration
less
lftp
libaa1
libacl1
libakode2
libalut0
libao2
libapm1
libappconfig-perl
libapr1
libaprutil1
libapt-pkg-dev
libapt-pkg-perl
libarchive1
libart-2.0-2
libart-2.0-dev
libart2.0-cil
libarts1-akode
libarts1c2a
libartsc0
libasound2
libasound2-dev
libaspell15
libatk1.0-0
libatk1.0-dev
libatm1
libatspi1.0-0
libattr1
libattr1-dev
libaudio2
libaudiofile0
libavahi-client3
libavahi-common-data
libavahi-common3
libavahi-compat-libdnssd1
libavahi-core5
libavahi-glib1
libavahi-qt3-1
libavahi-ui0
libavc1394-0
libbeagle1
libbind9-30
libblkid1
libbluetooth2
libbonobo2-0
libbonobo2-common
libbonobo2-dev
libbonoboui2-0
libbonoboui2-common
libbrlapi0.5
libbz2-1.0
libc6
libc6-dev
libc6-dev-mipsel-cross
libc6-i686
libc6-mipsel-cross
libcaca0
libcairo-perl
libcairo2
libcairo2-dev
libcairomm-1.0-1
libcamel1.2-11
libcap1
libcdio-cdda0
libcdio-paranoia0
libcdio7
libcdparanoia0
libchewing3
libchewing3-data
libchm1
libchromexvmc1
libchromexvmcpro1
libck-connector0
libcomerr2
libcompizconfig0
libcompress-raw-zlib-perl
libcompress-zlib-perl
libconsole
libcppunit-1.12-0
libcppunit-dev
libcroco3
libcucul0
libcupsimage2
libcupsys2
libcurl3
libcurl3-gnutls
libcurl4-gnutls-dev
libcwidget-dev
libcwidget3
libdaemon0
libdatrie0
libdb-dev
libdb4.6
libdb4.6-dev
libdbus-1-3
libdbus-glib-1-2
libdecoration0
libdeskbar-tracker
libdevmapper1.02.1
libdigest-hmac-perl
libdigest-sha1-perl
libdirectfb-1.0-0
libdjvulibre15
libdmx1
libdns32
libdns36
libdrm2
libdv4
libebook1.2-9
libecal1.2-7
libedata-book1.2-2
libedata-cal1.2-6
libedataserver1.2-9
libedataserverui1.2-8
libedit2
libeel2-2
libeel2-data
libegroupwise1.2-13
libelfg0
libenchant1c2a
libesd-alsa0
libespeak1
libevent1
libexchange-storage1.2-3
libexempi3
libexif12
libexpat1
libexpat1-dev
libffi4
libfile-remove-perl
libflac8
libflickrnet2.1.5-cil
libfontconfig1
libfontconfig1-dev
libfontenc1
libfreetype6
libfreetype6-dev
libfribidi0
libfs6
libfuse2
libgadu3
libgail-common
libgail-dev
libgail-gnome-module
libgail18
libgamin0
libgc1c2
libgcc1
libgcc1-mipsel-cross
libgconf2-4
libgconf2.0-cil
libgcrypt11
libgcrypt11-dev
libgd2-noxpm
libgdata-google1.2-1
libgdata1.2-1
libgdbm3
libggz2
libggzcore9
libggzmod4
libgimp2.0
libgksu2-0
libgl1-mesa-dri
libgl1-mesa-glx
libglade2-0
libglade2.0-cil
libglew1.5
libglib-perl
libglib2.0-0
libglib2.0-cil
libglib2.0-dev
libglibmm-2.4-1c2a
libglu1-mesa
libglut3
libgmime-2.0-2
libgmime2.2-cil
libgnome-desktop-2
libgnome-keyring0
libgnome-mag2
libgnome-media0
libgnome-menu-dev
libgnome-menu2
libgnome-pilot2
libgnome-speech7
libgnome-vfs2.0-cil
libgnome-window-settings1
libgnome2-0
libgnome2-canvas-perl
libgnome2-common
libgnome2-perl
libgnome2-vfs-perl
libgnome2.0-cil
libgnomecanvas2-0
libgnomecanvas2-common
libgnomecanvas2-dev
libgnomecups1.0-1
libgnomekbd-common
libgnomekbd2
libgnomekbdui2
libgnomeprint2.2-0
libgnomeprint2.2-data
libgnomeprintui2.2-0
libgnomeprintui2.2-common
libgnomeui-0
libgnomeui-common
libgnomevfs2-0
libgnomevfs2-bin
libgnomevfs2-common
libgnomevfs2-extra
libgnutls-dev
libgnutls13
libgnutlsxx13
libgomp1
libgpg-error-dev
libgpg-error0
libgpgme11
libgphoto2-2
libgphoto2-port0
libgpmg1
libgpod-common
libgpod3
libgraphviz4
libgs8
libgsf-1-114
libgsf-1-common
libgsl0ldbl
libgssglue1
libgstreamer-plugins-base0.10-0
libgstreamer0.10-0
libgtk-vnc-1.0-0
libgtk2-perl
libgtk2.0-0
libgtk2.0-bin
libgtk2.0-cil
libgtk2.0-common
libgtk2.0-dev
libgtkhtml2-0
libgtkhtml3.14-19
libgtkhtml3.16-cil
libgtkmm-2.4-1c2a
libgtksourceview-common
libgtksourceview1.0-0
libgtksourceview2.0-0
libgtksourceview2.0-common
libgtkspell0
libgtop2-7
libgtop2-common
libgucharmap6
libguile-ltdl-1
libgutenprint2
libgvfscommon0
libgweather-common
libgweather1
libhal-storage1
libhal1
libhesiod0
libhtml-parser-perl
libhtml-tagset-perl
libhtml-tree-perl
libhunspell-1.1-0
libice-dev
libice6
libicu38
libidl-dev
libidl0
libidn11
libidn11-dev
libiec61883-0
libieee1284-3
libio-compress-base-perl
libio-compress-zlib-perl
libio-stringy-perl
libisc32
libisc35
libisccc30
libisccfg30
libiw29
libjasper1
libjpeg62
libkadm55
libkeyutils1
libklibc
libkpathsea4
libkrb5-dev
libkrb53
liblaunchpad-integration1
liblcms1
libldap-2.4-2
libldap2-dev
liblircclient0
liblocale-gettext-perl
liblpint-bonobo0
libltdl3
liblua50
liblualib50
liblwres30
liblzo2-2
liblzo2-dev
libmagic1
libmagick10
libmail-box-perl
libmail-sendmail-perl
libmailtools-perl
libmeanwhile1
libmetacity0
阅读(3652) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~