NetBSD Problem Report #50329

From www@NetBSD.org  Sun Oct 11 22:20:50 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3FC06A567D
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 11 Oct 2015 22:20:50 +0000 (UTC)
Message-Id: <20151011222049.00E5AA65C8@mollari.NetBSD.org>
Date: Sun, 11 Oct 2015 22:20:48 +0000 (UTC)
From: ventilator@semmel.ch
Reply-To: ventilator@semmel.ch
To: gnats-bugs@NetBSD.org
Subject: Wrong default server path in sysinst for FTP install
X-Send-Pr-Version: www-1.0

>Number:         50329
>Category:       install
>Synopsis:       Wrong default server path in sysinst for FTP install
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 11 22:25:01 +0000 2015
>Last-Modified:  Mon Oct 12 08:05:01 +0000 2015
>Originator:     Martin Ebnöther
>Release:        7.0
>Organization:
>Environment:
Raspberry Pi install image from 
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-7.0/evbarm-arm/binary/gzimg/rpi_inst.img.gz
System not yet installed.
>Description:
When trying to install NetBSD to a Raspberry Pi from FTP-Server, the default path in sysinst points to /pub/NetBSD/NetBSD-7.0/evbarm/ while the correct path would be /pub/NetBSD/NetBSD-7.0/evbarm-arm/ . 

>How-To-Repeat:
Install NetBSD 7.0 on a Raspberry Pi by booting rpi_inst.img from SD-Card, sysinst gives the wrong FTP server path by default. 
>Fix:
Change default path from /pub/NetBSD/NetBSD-7.0/evbarm/ to /pub/NetBSD/NetBSD-7.0/evbarm-arm/ 

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/50329: Wrong default server path in sysinst for FTP install
Date: Mon, 12 Oct 2015 09:32:33 +0200

 Just a side note (the issue reported here is real and should be fixed!):

 Since you are installing from scratch, 
 you should prefer to install evbarm-earmv6hf on RPi.

 (yes, it IS confusing)

 Martin

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/50329: Wrong default server path in sysinst for FTP install
Date: Mon, 12 Oct 2015 10:01:26 +0200

 The underlying issue is a lot of confusion which ABI is used by default
 on what ARM port.

 Since evbarm defaults to oabi (i.e. evbarm == evbarm-arm) the path used
 by sysinst here *could* be considered correct and as a fix the ftp setup
 be changed (by adding a symlink).

 However, the same problem then shows up with evbarm-earm.

 So sysinst encodes this information here:

 main.c: {"ftp prefix", "/" MACH "/binary/sets", set_dir_bin, sizeof set_dir_bin},

 and MACH comes from Makefile.inc:

 	-DMACH=\"${MACHINE}\"

 I suggest to create a new -DFTP_MACH and use it for both the ftp prefix as
 well as the pkg path default (currently also using MACH).

 Then default FTP_MACH to MACH if not overriden by the arch, and override it
 on arm depending on the ABI in use.

 Martin

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.