求教,ubuntu ARM服务器版怎么装?

CPU/显卡/打印机/USB设备等硬件问题
yq1220
帖子: 11
注册时间: 2014-12-15 17:32
系统: ubuntu

求教,ubuntu ARM服务器版怎么装?

#1

帖子 yq1220 » 2014-12-15 17:45

最近开始学习ARM,弄了个ARM7和ARM8的板子,我在ubuntu的官网上看,有个叫ARM服务器版的ubuntu,想安到板子上看看是什么样子的,但看不懂安装指南,请问有没有装过这个系统的大大,指导下,或者在ARM上装ubantu也行,主要是想看看ubuntu在ARM上跑的效果
onlylove
论坛版主
帖子: 5229
注册时间: 2007-01-14 16:23

Re: 求教,ubuntu ARM服务器版怎么装?

#2

帖子 onlylove » 2014-12-15 21:03

和在x86上跑的效果一样,不用费心研究了,还有,别重复发帖子
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
yq1220
帖子: 11
注册时间: 2014-12-15 17:32
系统: ubuntu

Re: 求教,ubuntu ARM服务器版怎么装?

#3

帖子 yq1220 » 2014-12-20 17:45

那怎么安装啊??我在官网上下,
[ICO] Name Last modified Size
[ ] initrd.gz 19-Dec-2014 11:34 10M
[ ] vmlinuz 19-Dec-2014 11:34 4.8M
这两文件加起来不超过15M啊,不可能只有这么大吧,我听说在ARM版上配PHP服务器的话,好多东西都要重新编译的,因为ARM和X86芯片架构不同啊。。。。。。。。还有,官方的安装指南上写的是在X-Gene上安装,那在其他ARM板子上怎么安装啊??
onlylove
论坛版主
帖子: 5229
注册时间: 2007-01-14 16:23

Re: 求教,ubuntu ARM服务器版怎么装?

#4

帖子 onlylove » 2014-12-20 18:11

这两个文件就是系统内核,你指望它多大?如果动不动几百M上G的体积,请问下openwrt这样的东西怎么塞进路由器,还有,我多问一句,你是伸手党么,如果是,恕不回答之后任何问题
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
yq1220
帖子: 11
注册时间: 2014-12-15 17:32
系统: ubuntu

Re: 求教,ubuntu ARM服务器版怎么装?

#5

帖子 yq1220 » 2014-12-20 19:22

你这人有毛病吗?我来问个问题你说我是伸手党,好,那我就是伸手党了,活在这世上的人有谁是生出来就懂编程的,有谁是在娘胎里就知道设计电子电路知道嵌入式知道怎么安系统的,而且我不懂就来问了,那又怎么了,我还会来问问,说明我知道自己哪里不懂,如果你看不起我这种新手,那你也可以不要回答我的问题,要不是我在百度,GOOGLE上找不到解决的也不会来这里问,论坛就是让各种人交流的地方,难到不准问个问题吗?你知道有多少人在没人指导的情况在学嵌入式,再学编程吗?你知道没人指导的情况下学的艰难吗?你体会过一个BUG想得睡不着觉吗?有人指导的话可能就是一句话点一下就能想通了,而我们却要自己去解决,连讨论的人的没有,如果你觉得自己了不起,我不屑你给的答案,如果你不喜欢,那你可以不要来回答。
onlylove
论坛版主
帖子: 5229
注册时间: 2007-01-14 16:23

Re: 求教,ubuntu ARM服务器版怎么装?

#6

帖子 onlylove » 2014-12-20 20:02

我就呵呵下,官方都给了一个示例了,你照葫芦画瓢都不会啊?还说你知道你哪里不懂,玩嵌入式的,都知道硬件资源有限,第一件事先裁剪内核,你倒好,这东西太小,对么?还说自己知道自己哪里不懂,我学嵌入式的时候也没人指导,就是照着书做,和书的开发版不一样,也照猫画虎,遇到出错,去搜报错的log,而不是像你这样,哎呀,我不会呀,你手把手教我怎么安装吧,哎呀,我听说XXX好难啊,你这怎么这样,和我听说的不一样啊?新手不可怕,可怕的是大爷新手,懂么?我为一个BUG睡不着觉的时候,你知道啥叫嵌入式?我当初折腾一个BOOTLOADER都折腾了一个多月,你这就受不了?你现在的开发板子,硬件比我那时候好多了,听说过UCLLINUX没?我学嵌入式的时候哪有现在这么好的条件,你在连入门都没有的情况下不虚心求教,反而和我耍大牌,啥因为一个BUG睡不着,我啥时候说不准问问题了?问题是你连怎么提问都不知道,你到这来和我说这?就问一句话,论坛置顶的提问的智慧看了没?
1.自己先下载下来,
2.照着官方和其他第三方指导做下
3.做好了么?没有?有问题?哪里出错了?来论坛提问
你是这样做的么?
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
yq1220
帖子: 11
注册时间: 2014-12-15 17:32
系统: ubuntu

Re: 求教,ubuntu ARM服务器版怎么装?

#7

帖子 yq1220 » 2014-12-20 20:56

你说手把手学,我就更笑了,当初我学编程的时候就是从变量开始自己学,只有一本书,老师也没有,连电脑都是别人给的跑WIN95系统的机子,指针我理解了近一个月才懂,后来学android APP 国内连一个像样的android网站都没有,我照样还不是学会了,你说现在硬件比你那时好,是,比你那时好,但原理会变吗?你说入门都没有的情况下不虚心请教,耍大牌,我一开始提问的时候有过类似的话了吗?我一直按普通问问提的套路去问,你自己说的 “你是伸手党么,如果是,恕不回答之后任何问题” 到底谁耍大牌?你说手把手教,那你知道我哪人吗?你说现在条件好,铺天盖地的在用ARM服务器了吗?跟你说句实话我问的是ARM服务器版,就是想知道ARM做服务器能行吗,起码跑PHP会不会出问题,而且嵌入式可以说在电脑之前就有,难道单片机是在电脑以后才有的吗?我学C51的时候跑过uCOSII你知道吗?你搞BOOTLOADER都折腾了一个多月,我在工作那会一天睡3小时你受得了吗,别用自己的眼光去看别人的生活。
onlylove
论坛版主
帖子: 5229
注册时间: 2007-01-14 16:23

Re: 求教,ubuntu ARM服务器版怎么装?

#8

帖子 onlylove » 2014-12-20 21:13

哟哟哟,win95都出来了,说的好像我学编程的时候不是从变量学的,就有老师教似的,我就纳闷了,win95时代过来的,玩过c51的人,不会装arm linux?服务器版的arm linux还比普通的arm多长角了?arm做服务器行不行?你看树莓派啊?还有,你是哪里人我不管,我就觉得,连安装指南都看不懂的人,更应该好好去学下该学的基础知识,而不是上论坛和我口水,最起码我看得懂安装指南,还有,你说android app国内连像样的网站都没有,你都学会了,我就想不明白,那都可以学会的东西,看不懂安装指南?我这就去看看那安装指南啥样去,省的被人笑话
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
yq1220
帖子: 11
注册时间: 2014-12-15 17:32
系统: ubuntu

Re: 求教,ubuntu ARM服务器版怎么装?

#9

帖子 yq1220 » 2014-12-20 21:59

谁说玩过C51就会ARM?谁说会学android就看得懂安装指南?有种东西叫翻译软件懂不?你用C51装个Linux我看看,因为翻译软件翻译的看不懂我才来问的,我还可以告诉你,我还见过打孔计算机你信不?而且IT这行术业有专攻,你叫搞 Flash人写个跑马灯的单片机我看看?
yq1220
帖子: 11
注册时间: 2014-12-15 17:32
系统: ubuntu

Re: 求教,ubuntu ARM服务器版怎么装?

#10

帖子 yq1220 » 2014-12-20 22:09

而且,我现在放假,有的是时间跟你口水,连术业有专攻都不懂的人,到底是谁被谁笑话,我们现在专门做手机游戏,你会做游戏吗?你懂数值的平衡策划吗?
onlylove
论坛版主
帖子: 5229
注册时间: 2007-01-14 16:23

Re: 求教,ubuntu ARM服务器版怎么装?

#11

帖子 onlylove » 2014-12-20 22:21

先放个支持的设备列表
https://wiki.ubuntu.com/ARM/DeviceSupport

然后再放几个官方的安装guide
嗯,找个简单的吧,太长的翻译太累,不过X-Gene那个肯定有
先来TI OMAP4的
https://wiki.ubuntu.com/ARM/Server/Install/OMAP4
帮英文不好的同学翻译下
Download the compressed image from the cdimage server.
从CD映像服务器下载压缩过的映像(image这个一直不知道怎么翻译好,是镜像还是映像?)
Check the md5sum to verify the image
检查MD5(这个没啥好说的)
Copy the image to SD card
把映像复制到SD卡
You should write the raw image to a blank SD card. Make sure you're using at least a 2 Gig SD card so that you have enough room for the image.
你应该把raw(这个真不知道怎么翻译)image写到一个空白的SD卡,你要用一个至少2G的SD卡确保你有足够的空间(Gig是什么鬼,GiB?)
Insert the SD card in your host computer's SD card reader.
把SD卡插到你电脑的SD卡槽里(这边是host computer,不是arm板)
Make sure the SD card is not mounted (just umount it if needed).
确保SD卡没有被挂载(如果需要,umount掉)
Identify the correct device name (like /dev/mmcblk0 or /dev/sdb).
确定正确的设备名字(像/dev/mmcblk0或 /dev/sdb)这个确认下,万一写错了就麻烦了
Run the following command to write it:
运行以下命令来写入(打开终端输命令咯)

代码: 全选

gunzip -c ubuntu-12.04-preinstalled-server-armhf+<omap or omap4>.img.gz | sudo dd bs=1M of=/dev/<device name>
sync
这边<device name>要换成你自己的设备名字
或者

代码: 全选

sudo sh -c 'zcat ubuntu-12.04-preinstalled-server-armhf+<omap or omap4>.img.gz > /dev/<device name>'
sync
这里的<device name>和上面哪个一样,只不过这个用的sudo
(note: replace <omap image> with omap4 for panda/blaze/other omap4 based system and the raw block device for <device name> - not a partition. i.e. /dev/mmcblk0 )
这个就是提示把<omap image> 和<device name>换成你自己的实际情况的名字
Booting the image
启动镜像
Attach a serial cable to the serial port on the board. (note: The board is already wired for a straight serial cable - no null modem needed)
连接一条串口线到开发板的串口上(括号里面的内容没必要在意)
Open a terminal on your host system and launch a serial console monitor with the port set for 115200,n,8,1
在电脑上打开一个终端,打开串口连接程序(这个略别扭,其实就是minicom和 Screen之类能连接串口的程序)
Screen: screen /dev/ttyUSB0 115200 (这个是screen的操作步骤,ttyUSB0是USB转串口的设备号,,115200是波特率,没啥好说的)
you can end the screen session by pressing Ctrl-A and then K (这个是终止screen会话的,按 ctrl a然后按k)
Minicom: TERM=vt100 minicom
the TERM=vt100 setting is needed for proper output formatting
you can end the minicom session by pressing Ctrl-A and then X or Q (这两行解释了为啥要用 TERM=vt100和怎么退出minicom)
Insert the SD card in the system and switch on the board.
把SD卡插到开发板打开开关
The system should start booting with output shown on your serial terminal. After the board resizes the image to fill the SD card, it will reboot and start oem-config to prompt for localization and user info.
这句话其实没必要翻译了,无非就说,输出会输出到你的终端,它做完一堆操作之后,会重启开发板
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
onlylove
论坛版主
帖子: 5229
注册时间: 2007-01-14 16:23

Re: 求教,ubuntu ARM服务器版怎么装?

#12

帖子 onlylove » 2014-12-20 22:22

手机游戏有数值平衡策划?我就笑笑 :em05 当我不玩?
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
onlylove
论坛版主
帖子: 5229
注册时间: 2007-01-14 16:23

Re: 求教,ubuntu ARM服务器版怎么装?

#13

帖子 onlylove » 2014-12-20 22:23

还有,别拿术业有专攻给自己英文不好当遮羞布,基础知识都不好,就虚心学习啊,你见过打孔计算机啊,我还精通systemZ开关机呢 :em05
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
yq1220
帖子: 11
注册时间: 2014-12-15 17:32
系统: ubuntu

Re: 求教,ubuntu ARM服务器版怎么装?

#14

帖子 yq1220 » 2014-12-20 22:37

说的好像我学编程的时候不是从变量学的,就有老师教似的
我承认我初中文化,所以没老师来教,难道你也大学都没上过?
手机游戏有数值平衡策划?我就笑笑 :em05 当我不玩?
你以为你每升1级加的那点攻击力怎么来的?
跑酷游戏的话每关给你多少分或多少游戏币怎么来的?
捕鱼达人里打一条什么鱼得多少分,一级炮打一次扣多少这些数值你以为怎么来的?
你真的好好玩过,你自己会算不出来?
onlylove
论坛版主
帖子: 5229
注册时间: 2007-01-14 16:23

Re: 求教,ubuntu ARM服务器版怎么装?

#15

帖子 onlylove » 2014-12-20 23:06

本来想多翻译几个的,算了,翻译完X Gene之后睡觉去,吵架都找不到个会吵的(翻译到一半才发现,这是不是个电视棒之类的东西……)
Ubuntu 14.04 installation instructions for x-gene Mustang reference board (ARM64)
x-gene 开发板 ubuntu 14.04安装指南
Before You Begin
开始之前
You will need the following:
你需要这些
An Applied Micro Mustang reference board (get yours here!) 一块开发板,没啥好说的,后面是个购买链接,我没复制
A management device for console access 一个串口访问设备(这啥?usb2com?)
DHCP available which will provide Internet access (to access the Ubuntu package archive) 一个带dhcp的网络连接,访问ubuntu软件包服务器用的(这个有个路由器就可以吧)
A TFTP Server accessible from the system 一个开发板能够访问的tftp服务器(这没啥好说的吧?)
Download netboot images
下载网络启动镜像(居然是网络安装的……)
Download netboot images from X-gene netboot images and place them in a directory on your tftp server. Subsequent instructions assume you have placed these files in the directory xgene in your tftp server root. Please modify as required if you chose a different path.
从x-gene网站下载网络安装镜像,把它放到tftp 服务器的一个目录里,之后的指令假设你把文件放在tftp服务器的根目录下面的xgene目录,如果你选择了不一样的目录,请修改下
(我不觉得这个很难)
Hardware Requirements
硬件需求
Requires a board with A3 silicon, running firmware based on the APM's 1.13.28 release. (这是啥,我没弄过这东西,大概是A3的处理器,然后1.13.28的固件版本?反正就是硬件参数)
Currently only 1 of the 4 ethernet ports is supported (the one over the USB ports), and only at Gig and 10Gig speeds link rates (10/100 is known not to work). These limitations will be removed overtime.
目前四个以太网口只有一个被支持(USB口上面那个(大概这个意思)),并且只有在G和10G的链接速度(千兆和万兆网……Gig是啥啊,补课去QAQ)(10、100自适应已知不工作),这些限制过段时间会移除
Launch Ubuntu installer
启动UBUNTU安装程序
Boot your system to u-boot prompt (“Mustang#”)启动你的系统(好吧,这边是说xgene)到uboot的提示符“Mustang#”(bootloader都弄好了……)
Power up the X-C1 board, while powering up, hit “Enter” or “Return” key to stop the boot process at the u-boot prompt (“Mustang#” )
给 X-C1板加电,看到uboot提示符的时候按回车键打断启动过程(按下回车好了)
Configure your system to autoboot to Ubuntu
配置你的系统自动启动到ubuntu

代码: 全选

Mustang# setenv script_addr_r 0x4004000000
Mustang# setenv bootcmd 'scsi init; ext4load scsi 0 ${script_addr_r} boot.scr; source ${script_addr_r}'
Mustang# saveenv
这仨,照着做就好,至于有没有错我也不知道
(Optional) : Enable other SATA ports , if you’d like to use multiple disks
可选的,启用其他sata端口,如果你想用多个硬盘

代码: 全选

Mustang# setenv SATA 0x3c

代码: 全选

Mustang# saveenv
notice 2 "e"s 这句是提示你里面俩e

代码: 全选

Mustang# reset
照做,如果你要启用其他的sata端口
Configure networking from u-boot
配置网络

代码: 全选

Mustang# setenv ipaddr <mustang-ip>

Mustang# setenv netmask <mustang-netmask>

Mustang# setenv gatewayip <mustang-gateway>

Mustang# setenv serverip <tftp-server-ip>
照做就好,记得把里面的ip和掩码网关啥的改成你自己的
Load the installer from u-boot
加载安装程序

代码: 全选

Mustang# tftpboot ${kernel_addr_r} xgene/uImage

Mustang# tftpboot ${ramdisk_addr_r} xgene/uInitrd

Mustang# tftpboot ${fdt_addr_r} xgene/apm-mustang.dtb
没啥说的,继续照做
Launch the Ubuntu installer from u-boot
启动ubuntu安装

代码: 全选

Mustang# run addtty

Mustang# bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
Ubuntu Installer GUI Selections
这个是安装过程,和需要选择的东西
In the installer GUI, make selections as described in this section. When in doubt, refer to the detailed selection instructions below. Most on-screen options are self explanatory . Do take care to pick Guided - use entire disk option from Partition disks menu.
在安装程序中,在这一节做选择和决定,有疑问的话,参考下面的详细选择指令,大部分选项都是自我说明,选择硬盘分区时一定要注意,选择使用整个硬盘选项
Menu : Select a language
选择语言
Highlight “English” & hit “return”
这个栗子用的是英语
Menu: Select your location
选择location(就是选你在哪,这个会影响系统时间和语言)
Highlight “United States” (or your geographic location as necessary) & hit “return”
这个栗子用的是USA
Menu: Configure the keyboard
配置键盘
Highlight “English (US)” or your specific configuration & hit “return”
没啥好说的,美式英语
Menu: Configure the network
配置网络
Select your active interface, typically thats eth0. Highlight “eth0” & hit “return”
选择活动的端口,默认是eth0,选择eth0回车
Menu: Enter the Hostname
输入主机名
Type in your hostname, tab and hit “return”

Menu: Choose a mirror of the Ubuntu archive
选择一个安装源,这个选快的就是……
“United Kingdom” is most commonly selected. But please feel free to pick a mirror geographically closer to you and hit “return”

Menu: Choose a mirror of the Ubuntu archive
这个还是选择源的步骤
“ports.ubuntu.com” should be highlighted . If not, select that and hit “return”

Menu: Choose a mirror of the Ubuntu archive

If you require a proxy enter the info here. Then hit “tab” to highlight “ok” and hit “return”
如果你有代理服务器,在这填代理的信息
Menu: set up users and passwords
设置用户和密码
Sub Menu: Full name for the new user: Enter User’s Full name , tab to ok then press “return”
子菜单,用户全名
Sub Menu: Username for your account: Choose a user name
用户名(这个是登录时输入的那个)
Sub Menu: Choose a password for the new user: Enter & re-enter chosen password on the next screen
密码
Sub Menu : Encrypt your home directory ? : Choose “yes” / “No” as necessary
选择是否加密主目录
Menu: Configure the clock
配置时钟
Select your time zone: scroll up or down with the arrow keys to select a timezone; hit “return”
选时区,没啥好说的
Menu: Partition disks
磁盘分区(这里前面有说,要用整个磁盘)
Choose Guided - use entire disk

NOTE: Ubuntu currently has some hard requirements about how u-boot based servers need to be partitioned (/boot has to be first partition). So it is best to choose this option
注意,ubuntu目前对uboot启动的服务器如何分区有硬性要求/boot必须是第一分区,所以,选择使用整个磁盘是最好的选择(原来如此……)
Menu: Select disk to partition:
选择需要分区的磁盘
The disk(s) that are available on the system will appear, typically you want to select “sda” as the disk you want to install to. This entry “SCSI1 (0,0,0) (sda) - (size of disk)” should be highlighted, next press enter

A screen displaying partitions on sda appears. Press "Tab" to highlight "yes" and hit "return".

Menu: Configuring discover
配置discover(这个大概是配置更新)
How do you want to manage upgrades on this system? will appear here inside this menu.Depending on what options you are comfortable with, use the arrow key to highlight your option and hit “return”
你想怎么管理系统更新会在这里设置,根据个人喜好设置
No automatic updates is typically selected by developers so they can manage the system updates manually.
默认没有选择自动升级,
Menu: Software selection
选择软件包
Use the arrow keys to highlight your options and then the spacebar to select it. At minimum, following 2 options are recommended:

Basic Ubuntu server

OpenSSH server

Select Tab to highlight “continue” & hit “return” . This will kick off installation if the packages

Menu: Finish the installation
结束安装
Select Tab to highlight “<Yes>” & hit “return”

Menu: Finish the installation

Select Tab to highlight “<Continue>” & hit “return”

真不觉得这安装指南有多难 :em20
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
回复