Projekat

Općenito

Profil

Akcije

Prijedlozi #17050

Zatvoren

astlinux build

Dodano od Ernad Husremović prije oko 16 godina. Izmjenjeno prije skoro 15 godina.

Status:
Odbačeno
Prioritet:
Normalan
Odgovorna osoba:
Kategorija:
-
Početak:
14.04.2009
Završetak:
% završeno:

0%

Procjena vremena:

Povezani tiketi 3 (0 otvoreno3 zatvorenih)

korelira sa voip - Reference #17022: embedded asterisk uCpbx - astfin, astlinuxOdbačeno12.04.2009

Akcije
korelira sa ubuntu - Prijedlozi #17356: install ubuntu on usb driveZatvoreno22.05.2009

Akcije
korelira sa voip - Nove funkcije #17945: nmraka-2: build astlinuxOdbačenoErnad Husremović20.07.2009

Akcije
Akcije #1

Izmjenjeno od Ernad Husremović prije oko 16 godina

#apt-get install nasm

pokretanjem make-a u dl poddirektorij (isto kao i kod openwrt-a) kupe se željeni paketi

make ->
..
toolchain/getter_script.sh -P /home/hernad/devel/git/astlinux/dl http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.8.tar.bz2
...

hernad@nmraka-5:~/devel/git/astlinux$ ls dl

linux-2.6.26.8.tar.bz2  patches

Akcije #2

Izmjenjeno od Ernad Husremović prije oko 16 godina

hernad@nmraka-5:~/devel/git/astlinux$ mkdir -p target/device/genx8664/kernel-patches/
genx8664/
hernad@nmraka-5:~/devel/git/astlinux$ mkdir -p target/device/geni586/kernel-patches/

#apt-get install texinfo

Akcije #3

Izmjenjeno od Ernad Husremović prije oko 16 godina

hernad@nmraka-5:~/devel/git/astlinux$ sudo ln -s /home/hernad/devel/git/astlinux/build_i586/root/lib/modules/2.6.26.8-astlinux-dirty/ /home/hernad/devel/git/astlinux/build_i586/root/lib/modules/2.6.26.8-astlinux

Akcije #4

Izmjenjeno od Ernad Husremović prije oko 16 godina

heh isto ovo sam imao i kod openwrt-a:

...

zcat /home/hernad/devel/git/astlinux/dl/mini_httpd-1.19.tar.gz | tar -C /home/hernad/devel/git/astlinux/build_i586   -xf -
toolchain/patch-kernel.sh /home/hernad/devel/git/astlinux/build_i586/mini_httpd-1.19 package/minihttpd/ minihttpd\*.patch

Applying minihttpd-bhoc.patch using plaintext:
Get file FILES from Perforce with lock? [y] n

...

odgovarao sam sve sa "N"

Akcije #5

Izmjenjeno od Ernad Husremović prije oko 16 godina

ovo je u potpunosti isti build sistem kako je to urađeno kod openwrt-a

Akcije #6

Izmjenjeno od Ernad Husremović prije oko 16 godina

astlinux pravi nekakve sangoma wanpipe drajvere šta je to ?

http://wiki.sangoma.com/wanpipe-product

WANPIPE

The WANPIPE Voice/WAN Routing/API solution is comprised of:

1. Sangoma AFT or S series intelligent multi-protocol
Voice/WAN T1/E1/ADSL adapters or cards.
2. Kernel device drivers (Linux/BSD/Windows)
3. Suite of configuration, operation and debugging utilities.

Voice/Telephony Solutions (Asterisk)

Our WANPIPE® solution for telephony is 100% compatible with Asterisk, FreeSwitch, Yate and other Soft PBX. It offers enhanced features such as hardware echo cancellation and hardware HDLC for DCHAN channels. We also offer scalable, distributed, enterprise level SS7 Asterisk solution using Asterisk and FreeSwitch. For customers looking to develop custom voice applications, Sangoma offers a uniform, versitile Voice TDM API that can be used to develop custom Voice application over all Sangoma Hardware adaptors.

WAN Routing Solutions

With reference to the Open System Interconnection (OSI) protocol framework, the Sangoma “S” adapters along with the WANPIPE device drivers provide a physical and WAN data link layer to the Linux Kernel IP Routing Stack. The Linux IP Stack, using its powerful internal routing table, routes packets to and from the WANPIPE drivers. The full power of Linux stacks and applications are engaged overWANPIPE.

WANPIPE S-series adapters support data transfer rates up to 8Mbps. By adding a Sangoma WAN/ADSL component to the proven reliability of the Linux kernel, a powerful multi-T1/E1/ADSL router/firewall is created.

Sangoma AFT and S-series cards supportl on-board T1/E1/T3 CSU/DSU. In other words, a T1/E1/T3 line can be connected directly to the card eliminating all external components found in a traditional routing solution.

The following WAN protocols are supported: ATM, Frame Relay, PPP, MULTILINK PPP and CHDLC.

API Solutions

WANPIPE supports a full socket based API stack that can be used to develop custom applications over WAN protocols.

Sangoma API protocols include: X25, Frame Relay (API), HDLC (API), BitStreaming (API), BiSync (API), SDLC (API) and SS7 (API).

Using the WAN API suite, a vast range of applications can be developed, such as: Credit card verification, Voice-over IP, Protocol/Line Data Scope, Satellite Comm and Legacy interconnect.

Akcije #7

Izmjenjeno od Ernad Husremović prije skoro 16 godina

make

Pokušajte `basename --help' za više informacija.
svn: '.' is not a working copy

toolchain/astrelease/astrelease.mk

toolchain/astrelease/astrelease.mk:ASTURL= $(shell svn info | grep URL | cut -d" " -f2)
toolchain/astrelease/astrelease.mk:ASTREV= $(shell svn info | grep 'Last Changed Rev' | cut -d" " -f4)

Akcije #8

Izmjenjeno od Ernad Husremović prije skoro 16 godina

hernad@nmraka-5:~/devel/git/astlinux$ git diff

diff --git a/toolchain/astrelease/astrelease.mk b/toolchain/astrelease/astreleas
index a322058..509fd8c 100644
--- a/toolchain/astrelease/astrelease.mk
+++ b/toolchain/astrelease/astrelease.mk
@@ -4,10 +4,11 @@
 #
 ######################################################################

-ASTURL= $(shell svn info | grep URL | cut -d" " -f2)
+#ASTURL= $(shell svn info | grep URL | cut -d" " -f2)
 ASTBASE= $(shell basename $(ASTURL))
-ASTREV= $(shell svn info | grep 'Last Changed Rev' | cut -d" " -f4)
-
+#ASTREV= $(shell svn info | grep 'Last Changed Rev' | cut -d" " -f4)
+ASTURL=http://astlinux.org
+ASTREV=2699
 ifeq ($(shell cat target/generic/target_skeleton/etc/astlinux-release),svn)
        ASTVER = astlinux-$(ASTBASE)-$(ASTREV)$(ASTEXTRA)
 else

Akcije #9

Izmjenjeno od Ernad Husremović prije skoro 16 godina

hernad@nmraka-5:~/devel/git/astlinux$ cp astlinux.config .config
hernad@nmraka-5:~/devel/git/astlinux$ make menuconfig

Akcije #10

Izmjenjeno od Ernad Husremović prije skoro 16 godina

http://www.macsat.com/macsat/content/view/15/30/

I have chosen to install the simple p910n instead of Cups as "print server". While Cups is a full featured print server, it does depend on diskspace to spool print jobs to while printing. Since not all OpenWRT devices or installations have access to disk space, I have decided to use p910n. The p910n deamon does not spool locally, hence it will only work while the printer is actuately turned on!

Akcije #12

Izmjenjeno od Ernad Husremović prije skoro 16 godina

p910nd is a small printer daemon intended for diskless workstations that does not spool to disk but passes the job directly to the printer. Normally a lpr daemon on a spooling host connects to it with a TCP connection on port 910n (where n=0, 1, or 2 for lp0, 1 and 2 respectively). p910nd is particularly useful for diskless Linux workstations such as those set up with LTSP and embedded devices that have a printer hanging off them. Common Unix Printing System (CUPS) supports this protocol, it's called the AppSocket protocol and has the scheme socket://. LPRng also supports this protocol and the syntax is lp=remotehost%9100 in /etc/printcap.

Akcije #13

Izmjenjeno od Ernad Husremović prije skoro 16 godina

hernad@nmraka-5:~/devel/git/astlinux/package$ cp -av /home/hernad/devel/git/openwrt_packages/net/p910nd .

Akcije #14

Izmjenjeno od Ernad Husremović prije skoro 16 godina

WARNING: Couldn't open directory /home/hernad/devel/git/astlinux/build_i586/root/lib/modules/2.6.26.8-astlinux: No such file or directory

hernad@nmraka-5:~/devel/git/astlinux/package$ ln -s /home/hernad/devel/git/astlinux/build_i586/root/lib/modules/2.6.26.8-astlinux-dirty /home/hernad/devel/git/astlinux/build_i586/root/lib/modules/2.6.26.8-astlinux

Akcije #15

Izmjenjeno od Ernad Husremović prije skoro 16 godina

sljedeći prekid:

checking for tone_zone_find in -ltonezone... no
configure: ***
configure: *** The tonezone installation on this system appears to be broken.
configure: *** Either correct the installation, or run configure
configure: *** without explicitly specifying --with-tonezone
make: *** [/home/hernad/devel/git/astlinux/build_i586/asterisk-1.4.25/.configured] Error 1

Akcije #16

Izmjenjeno od Ernad Husremović prije skoro 16 godina

pokušaću ovo

hernad@nmraka-5:~/devel/git/astlinux$ git diff package/asterisk

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 0e384de..6e485e3 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -131,7 +131,6 @@ endif
                --datadir=/usr/share \
                --sysconfdir=/etc \
                --with-zaptel=$(STAGING_DIR)/usr \
-               --with-tonezone=$(STAGING_DIR)/usr \
                --with-pwlib=no \
                --with-ltdl=$(STAGING_DIR)/usr \
                $(ASTERISK_CONFIGURE_ARGS) \

Akcije #17

Izmjenjeno od Ernad Husremović prije skoro 16 godina

configure: *** The Zaptel installation on this system appears to be broken.
configure: *** Either correct the installation, or run configure
configure: *** including --without-zaptel.
make: *** [/home/hernad/devel/git/astlinux/build_i586/asterisk-1.4.25/.configured] Error 1
Akcije #18

Izmjenjeno od Ernad Husremović prije skoro 16 godina

hajde samo da pokušamo samo proguliti sa ovim build-om

hernad@nmraka-5:~/devel/git/astlinux$ git diff package/asterisk

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 0e384de..95b2d22 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -20,9 +20,6 @@ ASTERISK_CONFIGURE_ARGS+= \
                        --with-pri="$(STAGING_DIR)/usr" 
 endif

-ifeq ($(strip $(BR2_PACKAGE_ZAPTEL)),y)
-ASTERISK_EXTRAS+=zaptel
-endif

 ifeq ($(strip $(BR2_PACKAGE_ASTERISK_LIBPQ_CUSTOM)),y)
 ASTERISK_EXTRAS+=libpq
@@ -130,8 +127,6 @@ endif
                --exec-prefix=/usr \
                --datadir=/usr/share \
                --sysconfdir=/etc \
-               --with-zaptel=$(STAGING_DIR)/usr \
-               --with-tonezone=$(STAGING_DIR)/usr \
                --with-pwlib=no \
                --with-ltdl=$(STAGING_DIR)/usr \
                $(ASTERISK_CONFIGURE_ARGS) \

Akcije #19

Izmjenjeno od Ernad Husremović prije skoro 16 godina

toolchain/patch-kernel.sh /home/hernad/devel/git/astlinux/build_i586/mini_httpd-1.19 package/minihttpd/ minihttpd\*.patch

Applying minihttpd-bhoc.patch using plaintext: 
Get file FILES from Perforce with lock? [y] m

i još dva-tri puta rekao n

...
Akcije #20

Izmjenjeno od Ernad Husremović prije skoro 16 godina

Using Linux to Prepare the CF

You'll need a computer that can write to the CF card. If you're using Linux, you're likely familiar with how to access your CF device. Also, don't worry about partitioning or formatting the CF card, the imaging process will take care of this.

Many newer linux distributions will automatically mount flash media once it's been inserted. You may have to unmount the media first before imaging. If you see the flash card mounted on the desktop GUI, try right clicking on the icon and selecting "umount". Alternately at the command prompt, try umount /dev/flashdevice

Unless you have SCSI drives in your system Linux will usually enumerate the CF card as /dev/sda or /dev/sdb. Assuming your CF device is at /dev/sda, you will issue the following command to write the downloaded image onto the CF: (su to root first, running this example with sudo will result in shell re-redirection problems)

  1. gunzip -c /path/to/astlinux.img.gz > /dev/sda

If you want to do the same thing from a non-root account using sudo, try this format

$ sudo sh -c "gunzip -c /path/to/astlinux.img.gz > /dev/sda"

međutim ovo je zastarjelo izgleda (ovo je za ver 0.4.0 astlinux-a)

Akcije #21

Izmjenjeno od Ernad Husremović prije skoro 16 godina

ne kontam ??

chown: mjenjanje vlasništva od `/home/hernad/devel/git/astlinux/build_i586/root/lib/modules/2.6.26.8-astlinux-dirty/kernel/drivers/net/sis900.ko': Operation not permitted

Akcije #22

Izmjenjeno od Ernad Husremović prije skoro 16 godina

da nije radi ovog simboličkog linka što sam gore napravio

hernad@nmraka-5:~/devel/git/astlinux/build_i586/root/lib/modules$ ls
2.6.26.8-astlinux  2.6.26.8-astlinux-dirty
hernad@nmraka-5:~/devel/git/astlinux/build_i586/root/lib/modules$ rm 2.6.26.8-astlinux
hernad@nmraka-5:~/devel/git/astlinux/build_i586/root/lib/modules$ mv 2.6.26.8-astlinux-dirty/ 2.6.26.8-astlinux
Akcije #23

Izmjenjeno od Ernad Husremović prije skoro 16 godina

ništa ja ovo ne kontam

dobijem astlinux.iso od 40-tak MB

međutim on neće da se boot-a, barem ne ovaj što sam ja napravio ...

onda sam opazio ovu komandu

hernad@nmraka-5:~/devel/git/astlinux$ sudo ./makeimage.sh 400


This script will create a bootable AstLinux image from the
development environment in this directory. Every care has been
taken to prevent damage to your host operating system, house, etc.
HOWEVER, IT IS ALWAYS POSSIBLE FOR SOMETHING TO GO WRONG. I CAN
NOT GUARANTEE THAT THIS SCRIPT WILL NOT DESTROY YOUR MACHINE OR
ANY DATA ON IT

Press enter to continue, or CTRL+C to exit

Would you like me to aggresively strip everything in your image?
This can save as much as 10mb.
Please answer yes or no
Strip: no
build_i586/root/
Stripping declined
I can do this automatically
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xe4eb40b4.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): 
Expert command (m for help): Number of heads (1-256, default 255): 
Expert command (m for help): Number of sectors (1-63, default 63): Warning: setting sector offset for DOS compatiblity

Expert command (m for help): Number of cylinders (1-1048576, default 50): 
Expert command (m for help): 
Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (1-812, default 1): Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-812, default 812): Using default value 812

Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
^CProbing devices to guess BIOS drives. This may take a long time.

       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]
grub> device (hd0) /dev/loop0
grub> root (hd0,0)
grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 15: File not found
grub> quit
umounting ... /mnt/image
Done.

i fakat kada ovo spržim na usb dobijem root file sistem koji sam izbildao ali mi očigledno fali boot dio jer time ne dobijem bootabilan usb.

inače usb sam napravio jednostavno sa $sudo dd if=disk.img of=/dev/sdb size=1MB

ne mogu nikako sve končiće da povežem u dokumentaciji nisam našao jasne korake ...

Akcije #24

Izmjenjeno od Ernad Husremović prije skoro 16 godina

korištenje internet bookmark-ova

delicious.com ?

Akcije #25

Izmjenjeno od Ernad Husremović prije skoro 15 godina

  • Status promijenjeno iz Dodijeljeno u Odbačeno
Akcije

Također dostupno kao Atom PDF