From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC7B3C00140 for ; Thu, 18 Aug 2022 06:02:36 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.95) (envelope-from ) id 1oOYbt-0007pd-VS; Thu, 18 Aug 2022 02:02:29 -0400 Received: from mscreen.etri.re.kr ([129.254.9.16]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (Exim 4.95) (envelope-from ) id 1oOYbp-0007c0-Ca for kernelnewbies@kernelnewbies.org; Thu, 18 Aug 2022 02:02:25 -0400 Received: from unknown (HELO send001-relay.gov-dooray.com) (211.180.235.152) by 129.254.9.16 with ESMTP; 18 Aug 2022 15:02:22 +0900 X-Original-SENDERIP: 211.180.235.152 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: kernelnewbies@kernelnewbies.org Received: from [10.162.225.112] (HELO smtp002-imp.gov-dooray.com) ([10.162.225.112]) by send001-relay.gov-dooray.com with SMTP id f2eeed4f62fdd5ee; Thu, 18 Aug 2022 15:02:22 +0900 DKIM-Signature: a=rsa-sha256; b=MnXMFwJJzOXetX2dLUYFltbAUS/NeQKvRZewclchK5/wce9SNYWBOFfpEgOkUUf5SbOJAx+MQM hI5VxaJrAINLugGKL2cCQ1osnfFjNNkBtDvbztl+cLbvmoCBAnVbVwan2sKLLrqjknWVKltXqm1i 6ZTJWqq56s+1K0FpVefWsuTHoNs0qFyOPgl0/BN0zBhLBLQBfWVpxr8EVQd6iAS97Ka1WY/HsbaL 0GiR6Vu/B0rkKQur8gX6Nris1/Zlu3ey8CXzuLMRLhWY/t+7azvQBDcItN/steb6A8/aM1jtRMIA XuT+pAYLWT0Qnk+O0br/KUbHdjdVlvhJp9OPUVSQ==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=4XoWI8e7GCp0X4GcQSmQzBYs1s+2JplDjHQyBiLkCpI=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp002-imp.gov-dooray.com with SMTP id 7bf4c95862fdd5ee; Thu, 18 Aug 2022 15:02:22 +0900 From: "Chan Kim" To: References: <03db01d8ae26$07e35980$17aa0c80$@etri.re.kr> <060e01d8b2c2$0e319680$2a94c380$@etri.re.kr> In-Reply-To: <060e01d8b2c2$0e319680$2a94c380$@etri.re.kr> Subject: RE: busybox shell doesn't come up or get stuck.. where should I look or how should I debug it? Date: Thu, 18 Aug 2022 15:02:19 +0900 Message-ID: <063501d8b2c8$1381b2e0$3a8518a0$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Content-Language: ko Thread-Index: AQH56dwG32iNkvdzSZPNV4qwNP9iIAD/JTsgrWnDIrA= X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7692321533751853311==" Errors-To: kernelnewbies-bounces@kernelnewbies.org This is a multipart message in MIME format. --===============7692321533751853311== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0636_01D8B313.8369F720" Content-Language: ko This is a multipart message in MIME format. ------=_NextPart_000_0636_01D8B313.8369F720 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I had mistakenly omitted '-static' option when making init program.(repeated Hello! Print). So now the board output looks like this. (...) ### point 106-1 Run /init as init process ### point 106-2, ret = 0 Hello! i=0 Hello! i=1 Hello! i=2 ... Hello! i=115 Hello! i=116 Hello! i=117 He <=== hangs. So the running the 'init' program (whether it's a script or a binary program) is ok. The binary 'init' program stops after printing Hello 117 times so there seems to be more basic problem in H/W or device tree. And when the init script ran 'exec /bin/sh', the shell didn't start so 'running exec inside a script' can have a problem. If anyone has a suggestion or advice, I welcome it. Thank you! Chan Kim ------=_NextPart_000_0636_01D8B313.8369F720 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable busybox shell doesn't come up or get stuck.. = where should I look or how should I debug it?

I had mistakenly = omitted ‘-static’ option when making init program.(repeated = Hello! Print).

So now the board = output looks like this.

(...)

### point 106-1

Run /init as init process

### point 106-2, ret =3D 0

Hello! i=3D0

Hello! i=3D1

Hello! i=3D2

...

Hello! i=3D115

Hello! i=3D116

Hello! i=3D117

He          &n= bsp; <=3D=3D=3D hangs.

So the running = the ‘init’ program (whether it’s a script or a binary = program) is ok.

The binary = ‘init’ program stops after printing Hello 117 times so there = seems to be more basic problem in H/W or device tree.  And when the = init script ran ‘exec /bin/sh’, the shell didn’t start = so ‘running exec inside a script’ can have a problem. =

If anyone has a = suggestion or advice, I welcome it.

 

Thank = you!

Chan = Kim

 

------=_NextPart_000_0636_01D8B313.8369F720-- --===============7692321533751853311== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============7692321533751853311==--