From owner-freebsd-ppc@FreeBSD.ORG Tue Feb 19 10:48:01 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C006799E for ; Tue, 19 Feb 2013 10:48:01 +0000 (UTC) (envelope-from revivo73@yahoo.com) Received: from nm22.bullet.mail.bf1.yahoo.com (nm22.bullet.mail.bf1.yahoo.com [98.139.212.181]) by mx1.freebsd.org (Postfix) with ESMTP id 6660636A for ; Tue, 19 Feb 2013 10:48:01 +0000 (UTC) Received: from [98.139.212.149] by nm22.bullet.mail.bf1.yahoo.com with NNFMP; 19 Feb 2013 10:47:54 -0000 Received: from [98.139.212.246] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 19 Feb 2013 10:47:54 -0000 Received: from [127.0.0.1] by omp1055.mail.bf1.yahoo.com with NNFMP; 19 Feb 2013 10:47:54 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 332806.90268.bm@omp1055.mail.bf1.yahoo.com Received: (qmail 48972 invoked by uid 60001); 19 Feb 2013 10:47:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1361270874; bh=kZU/b+Mj39eDGl+1boBVTzG+/Onf5LUtbltNywJcW/A=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=oq2PvvfVLdw2TkE+MTHgor68Mv1TjI8kWXqknPL0wZnU5qmG/hxK6BbLH6+DPCQq1IcFACyE4tS+gxxxbjtFck9QnsCyV34AGKGQ8KhBTkWzbeRaabSXgJFmaQPQCLtUOuiAPl1idRvitN/9iUBhfDmi4sdG/I0DN1tISh2SZGU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=kZaH0qIWDDI6BAK1UALC9oSI7+sqriQJfNESEmF5fTR8XnFJkWsZLk0usbFN6CffWlNPMOYVWGhA1+zwE1stPb3fzQZC3OzXv0BPQbtzPwELVC8iJCXke0XWoTRI+3H4sCVcgvT6ErvshZAHJk4IengmXrQQTzVxj/QQSPU6TZg=; X-YMail-OSG: ZXKYlrcVM1luQBL5rDSS45NgznGjtutVxrpN3FqV_h2Nhwg nZ8_FQNd8656gXCxuBcDM.3jNsJdNmHym.ULuN5Kvmizz8mRrFOrDpPPFRX. 16OMdA5tmF2p60MQcgFWWAIlnVfnMQWQtES.4Ms8JPLEpi5hhbw9LdJskJyY Ec2e0lrRC3nIzcSjGknG7VdFaKOWXFZpeyFZQBRhKJQP7DBPmbxVnCdjhO5G behGR_fHPAnRSCcyCeCMQXD.n.K5DPYducf3KBXLQRqjBDdy5X8fLQBzBce0 EN0eP2q_AaNmbMMSKKFyPy1LGall8gxPgwFwxLbx8AbZONVEVaXgxu.J42uU EBoABBK3NYwu658iY0ONswKo6s3B1kCqOOfrHICfflA_z5.s.h8nkCX8OZ2C MsDledyHMQKqwiFNA79m.ZLnYENzQtKwBVfYwBYuQsBOnp7nGzZHrot2ypzX WNMtqKAf9AWJBFKMXnt2yKyqNkKJ8Oh_Yrs7ENvV5pTE22ccY3J4.5AAzXHs lfKA_VNNPR_0awo_Z7auLvV7YjcT8ehZ5jFprvM3_JfVKXm4hrUY3sigdRLM 9AJ51KATn3uMymYRJIbM567pwTg-- Received: from [85.105.206.193] by web160703.mail.bf1.yahoo.com via HTTP; Tue, 19 Feb 2013 02:47:54 PST X-Rocket-MIMEInfo: 001.001, SGVsbG8KClRoYW5rIHlvdSBmb3IgdGhlIGNvbnRpbnVlZCBpbnRlcmVzdC7CoCBJJ2QgbGlrZSB0byB0cnkgaXQgYnV0IHdpdGggbXkgY3VycmVudCBGcmVlQlNEIFBQQyA4LjIgQ0QgYW5kIEZyZWVCU0QgUFBDIExpdmVmcyBDRCwgSSBjb3VsZG4ndCBkbyBpdC4gCgpGaXJzdCwgdGhlIFBQQyBMaXZlZnMgQ0QgZG9lc24ndCBoYXZlIC91c3Ivc3JjCgpTZWNvbmQsIGl0IGRvZXNuJ3QgaGF2ZSB0aGUgbWRjb25maWcgY29tbWFuZC4KCkkgZ3Vlc3MgdGhleSBhcmUgaW4gRnJlZUJTRCBpMzg2IERWRC4gSSB3aWwBMAEBAQE- X-Mailer: YahooMailWebService/0.8.134.513 References: <1360858013.53771.YahooMailNeo@web160704.mail.bf1.yahoo.com> <511D2E19.6020809@yandex.ru> <1361183920.93805.YahooMailNeo@web160706.mail.bf1.yahoo.com> <51223290.4070509@yandex.ru> Message-ID: <1361270874.34972.YahooMailNeo@web160703.mail.bf1.yahoo.com> Date: Tue, 19 Feb 2013 02:47:54 -0800 (PST) From: =?iso-8859-1?Q?Muammer_Hamut=E7u?= Subject: Re: How to make APM disk which can be detected by Linux' GParted? To: "Andrey V. Elsukov" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-ppc@freebsd.org" X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: =?iso-8859-1?Q?Muammer_Hamut=E7u?= List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 10:48:01 -0000 Hello=0A=0AThank you for the continued interest.=A0 I'd like to try it but = with my current FreeBSD PPC 8.2 CD and FreeBSD PPC Livefs CD, I couldn't do= it. =0A=0AFirst, the PPC Livefs CD doesn't have /usr/src=0A=0ASecond, it d= oesn't have the mdconfig command.=0A=0AI guess they are in FreeBSD i386 DVD= . I will try it on an Intel machine by plugging this 40GB IDE HDD through U= SB.=0A=0A=0A=0A________________________________=0A From: Andrey V. Elsukov = =0ATo: Muammer Hamut=E7u =0ACc: "fr= eebsd-ppc@freebsd.org" =0ASent: Monday, February = 18, 2013 3:54 PM=0ASubject: Re: How to make APM disk which can be detected = by Linux' GParted?=0A =0AOn 18.02.2013 14:38, Muammer Hamut=E7u wrote:=0A> = I have a clue on how to achieve a partition structure which GParted=0A> can= detect: http://d1302.hizliresim.com/16/f/k2fd8.jpg=0A=0AIt seems your part= ition table has not been created with gpart(8).=0AAnd probably this did the= trick.=0A=0AAs you can see, your APM metadata takes 14 sectors, but when y= ou use=0Agpart(8), by default it takes 18 sectors.=0A=0A> How could I remak= e such a partitioning, how is it done? Thanks.=0A=0AYou can patch your geom= _part_apm module:=0AIndex: /usr/src/sys/geom/part/g_part_apm.c=0A=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A--- /usr/src/sys/geom/part/g_p= art_apm.c=A0=A0=A0 (revision 241375)=0A+++ /usr/src/sys/geom/part/g_part_ap= m.c=A0=A0=A0 (working copy)=0A@@ -101,7 +101,7 @@ static struct g_part_sche= me g_part_apm_scheme =3D {=0A=A0=A0=A0 g_part_apm_methods,=0A=A0=A0=A0 size= of(struct=0A g_part_apm_table),=0A=A0=A0=A0 .gps_entrysz =3D sizeof(struct = g_part_apm_entry),=0A-=A0=A0=A0 .gps_minent =3D 16,=0A+=A0=A0=A0 .gps_minen= t =3D 12,=0A=A0=A0=A0 .gps_maxent =3D 4096,=0A};=0AG_PART_SCHEME_DECLARE(g_= part_apm);=0A=0AThe you can do:=0A# mdconfig -s 78140160=0A# gpart create -= s apm=A0 md0=0A# gpart add -b 64 -t apple-boot -s 2001 md0=0A# gpart add -t= freebsd-ufs -s 5859376 md0=0A# gpart add -t apple-ufs -s 1953126 md0=0A# g= part add -t freebsd-ufs -s 1171876 md0=0A# gpart add -t freebsd-ufs -s 1171= 876 md0=0A# gpart add -t freebsd-ufs -s 7812501 md0=0A# gpart add -t freebs= d-ufs -s 1171876 md0=0A# gpart add -b 19144704 -t apple-boot -s 2048 md0=0A= # gpart add -t apple-ufs -s 15624192 md0=0A# gpart add -t apple-ufs -s 1953= 792 md0=0A=0A# gpart show md0=0A=3D>=A0 =A0 =A0 14=A0 78140146=A0 md0=A0 AP= M=A0 (37G)=0A=A0 =A0 =A0 =A0 14=A0 =A0 =A0 =A0=0A 50=A0 =A0 =A0 - free -= =A0 (25k)=0A=A0 =A0 =A0 =A0 64=A0 =A0 =A0 2001=A0 =A0 1=A0 apple-boot=A0 (1= M)=0A=A0 =A0 =A0 2065=A0 5859376=A0 =A0 2=A0 freebsd-ufs=A0 (2.8G)=0A=A0 = 5861441=A0 1953126=A0 =A0 3=A0 apple-ufs=A0 (953M)=0A=A0 7814567=A0 1171= 876=A0 =A0 4=A0 freebsd-ufs=A0 (572M)=0A=A0 8986443=A0 1171876=A0 =A0 5= =A0 freebsd-ufs=A0 (572M)=0A=A0 10158319=A0 7812501=A0 =A0 6=A0 freebsd-uf= s=A0 (3.7G)=0A=A0 17970820=A0 1171876=A0 =A0 7=A0 freebsd-ufs=A0 (572M)=0A= =A0 19142696=A0 =A0 =A0 2008=A0 =A0 =A0 - free -=A0 (1M)=0A=A0 19144704=A0= =A0 =A0 2048=A0 =A0 8=A0 apple-boot=A0 (1.0M)=0A=A0 19146752=A0 15624192= =A0 =A0 9=A0 apple-ufs=A0 (7.5G)=0A=A0 34770944=A0 1953792=A0 10=A0 apple= -ufs=A0=0A (954M)=0A=A0 36724736=A0 41415424=A0 =A0 =A0 - free -=A0 (19G)= =0A=0A:)=0A=0A-- =0AWBR, Andrey V. Elsukov From owner-freebsd-ppc@FreeBSD.ORG Thu Feb 21 12:09:33 2013 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0648815B9; Thu, 21 Feb 2013 12:09:33 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id BA1E717D; Thu, 21 Feb 2013 12:09:32 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.5/8.14.5) with ESMTP id r1LAXnYp096736; Thu, 21 Feb 2013 05:33:49 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id r1LAXn3d096735; Thu, 21 Feb 2013 10:33:49 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 21 Feb 2013 10:33:49 GMT Message-Id: <201302211033.r1LAXn3d096735@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [head tinderbox] failure on powerpc/powerpc Precedence: bulk X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2013 12:09:33 -0000 TB --- 2013-02-21 08:00:29 - tinderbox 2.10 running on freebsd-current.sentex.ca TB --- 2013-02-21 08:00:29 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 des@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2013-02-21 08:00:29 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2013-02-21 08:00:29 - cleaning the object tree TB --- 2013-02-21 08:00:29 - /usr/local/bin/svn stat /src TB --- 2013-02-21 08:00:32 - At svn revision 247073 TB --- 2013-02-21 08:00:33 - building world TB --- 2013-02-21 08:00:33 - CROSS_BUILD_TESTING=YES TB --- 2013-02-21 08:00:33 - MAKEOBJDIRPREFIX=/obj TB --- 2013-02-21 08:00:33 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-02-21 08:00:33 - SRCCONF=/dev/null TB --- 2013-02-21 08:00:33 - TARGET=powerpc TB --- 2013-02-21 08:00:33 - TARGET_ARCH=powerpc TB --- 2013-02-21 08:00:33 - TZ=UTC TB --- 2013-02-21 08:00:33 - __MAKE_CONF=/dev/null TB --- 2013-02-21 08:00:33 - cd /src TB --- 2013-02-21 08:00:33 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Thu Feb 21 08:00:38 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Thu Feb 21 10:24:38 UTC 2013 TB --- 2013-02-21 10:24:38 - generating LINT kernel config TB --- 2013-02-21 10:24:38 - cd /src/sys/powerpc/conf TB --- 2013-02-21 10:24:38 - /usr/bin/make -B LINT TB --- 2013-02-21 10:24:38 - cd /src/sys/powerpc/conf TB --- 2013-02-21 10:24:38 - /usr/sbin/config -m LINT TB --- 2013-02-21 10:24:38 - building LINT kernel TB --- 2013-02-21 10:24:38 - CROSS_BUILD_TESTING=YES TB --- 2013-02-21 10:24:38 - MAKEOBJDIRPREFIX=/obj TB --- 2013-02-21 10:24:38 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-02-21 10:24:38 - SRCCONF=/dev/null TB --- 2013-02-21 10:24:38 - TARGET=powerpc TB --- 2013-02-21 10:24:38 - TARGET_ARCH=powerpc TB --- 2013-02-21 10:24:38 - TZ=UTC TB --- 2013-02-21 10:24:38 - __MAKE_CONF=/dev/null TB --- 2013-02-21 10:24:38 - cd /src TB --- 2013-02-21 10:24:38 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Feb 21 10:24:38 UTC 2013 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/amdsmb.c cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/if_rl.c cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/intpm.c cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/ncr.c /src/sys/pci/ncr.c: In function 'ncr_get_nccb': /src/sys/pci/ncr.c:6428: error: 's' undeclared (first use in this function) /src/sys/pci/ncr.c:6428: error: (Each undeclared identifier is reported only once /src/sys/pci/ncr.c:6428: error: for each function it appears in.) *** [ncr.o] Error code 1 Stop in /obj/powerpc.powerpc/src/sys/LINT. *** [buildkernel] Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2013-02-21 10:33:49 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-02-21 10:33:49 - ERROR: failed to build LINT kernel TB --- 2013-02-21 10:33:49 - 7734.03 user 1011.88 system 9199.66 real http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-powerpc-powerpc.full