Re: [linux-yocto] [PATCH] don't check console device file on fs when booting with initrd/initramfs
On Wed, Feb 6, 2019 at 8:10 AM Alexey Brodkin wrote: > > In case of initrd/initramfs /dev/console might not exist that early > as devtmpfs is mounted a bit later by /init process so disable this > check in that case. That's a reasonable tweak to the console check. I've applied the patch to 4.19 and it will appear in future kernels as well. If you need it on another version, let me know. Bruce > > Signed-off-by: Alexey Brodkin > --- > init/main.c | 10 +- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/init/main.c b/init/main.c > index 387a2d7dc90b..5b904bc78fa4 100644 > --- a/init/main.c > +++ b/init/main.c > @@ -1112,7 +1112,9 @@ static int __ref kernel_init(void *unused) > > static noinline void __init kernel_init_freeable(void) > { > +#ifndef CONFIG_BLK_DEV_INITRD > struct kstat console_stat; > +#endif > /* > * Wait until kthreadd is all set-up. > */ > @@ -1144,11 +1146,17 @@ static noinline void __init kernel_init_freeable(void) > > do_basic_setup(); > > - /* Use /dev/console to infer if the rootfs is setup properly */ > +#ifndef CONFIG_BLK_DEV_INITRD > + /* > +* Use /dev/console to infer if the rootfs is setup properly. > +* In case of initrd or initramfs /dev/console might be instantiated > +* later by /init so don't do this check for CONFIG_BLK_DEV_INITRD > +*/ > if (vfs_lstat((char __user *) "/dev/console", (struct kstat __user *) > &console_stat) > || !S_ISCHR(console_stat.mode)) { > panic("/dev/console is missing or not a character > device!\nPlease ensure your rootfs is properly configured\n"); > } > +#endif > > /* Open the /dev/console on the rootfs, this should never fail */ > if (ksys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0) > -- > 2.16.2 > > -- > ___ > linux-yocto mailing list > linux-yo...@yoctoproject.org > https://lists.yoctoproject.org/listinfo/linux-yocto -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [linux-yocto] [PATCH] ARC: Add nsimhs- and hsdk-standard configs
On Fri, Feb 8, 2019 at 9:29 AM Alexey Brodkin wrote: > > With ARC support ramping-up in upstream OE we're ready to > build more complicated distributions and linux-yocto is > a nice and configurable base for that. > > This commit adds support of 1 simulated board (nSIM) and > the mast affordable and powerful to date development board (HSDK). > > Once Qemu port for ARC is functional (it's being actively developed now) > we'll switch from nSIM to Qemu. > > Still it would be really good to keep nSIM support in linux-yocto for now > as it allows for simpler testing as compared to real HW. Looks good to me, the configs make sense and are clean. I'd put this on master so it would be available for the 5.x -dev kernel (and then any future versions I release). If you want to test it on other versions (i.e. 4.19), let me know and I can put it there as well. Bruce > > Signed-off-by: Alexey Brodkin > Cc: Bruce Ashfield > --- > arch/arc/arc.cfg | 8 ++ > arch/arc/arc.scc | 5 > bsp/hsdk/hsdk-standard.scc | 7 + > bsp/hsdk/hsdk.cfg | 61 > ++ > bsp/hsdk/hsdk.scc | 7 + > bsp/nsimhs/nsimhs-standard.scc | 7 + > bsp/nsimhs/nsimhs.cfg | 9 +++ > bsp/nsimhs/nsimhs.scc | 1 + > 8 files changed, 105 insertions(+) > create mode 100644 arch/arc/arc.cfg > create mode 100644 arch/arc/arc.scc > create mode 100644 bsp/hsdk/hsdk-standard.scc > create mode 100644 bsp/hsdk/hsdk.cfg > create mode 100644 bsp/hsdk/hsdk.scc > create mode 100644 bsp/nsimhs/nsimhs-standard.scc > create mode 100644 bsp/nsimhs/nsimhs.cfg > create mode 100644 bsp/nsimhs/nsimhs.scc > > diff --git a/arch/arc/arc.cfg b/arch/arc/arc.cfg > new file mode 100644 > index ..761f3ed9 > --- /dev/null > +++ b/arch/arc/arc.cfg > @@ -0,0 +1,8 @@ > +CONFIG_ARC=y > +CONFIG_HIGH_RES_TIMERS=y > + > +CONFIG_ARC_CACHE=y > + > +# Enable unwinding > +CONFIG_ARC_DBG=y > +CONFIG_ARC_DW2_UNWIND=y > diff --git a/arch/arc/arc.scc b/arch/arc/arc.scc > new file mode 100644 > index ..bcc7c330 > --- /dev/null > +++ b/arch/arc/arc.scc > @@ -0,0 +1,5 @@ > +# patches are for everyone, but the kconfig data is just for ARC builds. > +if [ "$KARCH" = "arc" ]; then > + kconf hardware arc.cfg > + include cfg/timer/hz_100.scc > +fi > diff --git a/bsp/hsdk/hsdk-standard.scc b/bsp/hsdk/hsdk-standard.scc > new file mode 100644 > index ..29c46047 > --- /dev/null > +++ b/bsp/hsdk/hsdk-standard.scc > @@ -0,0 +1,7 @@ > +define KMACHINE hsdk > +define KTYPE standard > +define KARCH arc > + > +include ktypes/standard/standard.scc > + > +include hsdk.scc > diff --git a/bsp/hsdk/hsdk.cfg b/bsp/hsdk/hsdk.cfg > new file mode 100644 > index ..6d439021 > --- /dev/null > +++ b/bsp/hsdk/hsdk.cfg > @@ -0,0 +1,61 @@ > +# ARCv2 ISA > +CONFIG_ISA_ARCV2=y > + > +# HSDK custom SoC > +CONFIG_ARC_SOC_HSDK=y > +CONFIG_SMP=y > + > +# Build default .dtb inside kernel image as a good starting point > +CONFIG_ARC_BUILTIN_DTB_NAME="hsdk" > + > +# Enable passing command-line and .dtb from U-Boot > +CONFIG_ARC_UBOOT_SUPPORT=y > + > +# Auto-selected by U-Boot support but if it is enabled slave cores won't > start > +# CONFIG_ARC_SMP_HALT_ON_RESET is not set > + > +# Serial port > +CONFIG_SERIAL_8250=y > +CONFIG_SERIAL_8250_CONSOLE=y > +CONFIG_SERIAL_8250_DW=y > +CONFIG_SERIAL_OF_PLATFORM=y > + > +# DesignWare MobileStorage AKA DW MMC > +CONFIG_MMC=y > +CONFIG_MMC_SDHCI=y > +CONFIG_MMC_SDHCI_PLTFM=y > +CONFIG_MMC_DW=y > + > +# We use non-standard link base 0x9z to accommodate DCCM mapped to 0x8z > +# on cores 1 & 3. > +# Though we move xCCMs to 0x6z on early boot and may use all avaialble DDR > +# starting from normal 0x8z thus LINUX_RAM_BASE. > +CONFIG_LINUX_LINK_BASE=0x9000 > +CONFIG_LINUX_RAM_BASE=0x8000 > + > +# Ethernet > +CONFIG_NET_VENDOR_STMICRO=y > +CONFIG_STMMAC_ETH=y > +CONFIG_STMMAC_PLATFORM=y > +CONFIG_MICREL_PHY=y > + > +# GPIO > +CONFIG_GPIOLIB=y > +CONFIG_GPIO_SYSFS=y > +CONFIG_GPIO_DWAPB=y > + > +# Video > +CONFIG_DRM=y > +CONFIG_DRM_UDL=y > +CONFIG_FB=y > +CONFIG_FRAMEBUFFER_CONSOLE=y > + > +# Required for SOFTLOCKUP_DETECTOR > +CONFIG_DEBUG_KERNEL=y > + > +# Soft lock-up detector > +CONFIG_SOFTLOCKUP_DETECTOR=y > +CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=10 > + > +# Performance counters > +CONFIG_PERF_EVENTS=y > diff --git a/bsp/hsdk/hsdk.scc b/bsp/hsdk/hsdk.scc > new file mode 100644 > index ..2cfcb654 > ---
Re: [OE-core] [PATCH] linux-yocto: Add dependency on libgcc for ARC
On Fri, Feb 8, 2019 at 10:32 AM Alexey Brodkin wrote: > > As of now in case of ARC there's no in-kernel implementation of basic libgcc > functions used for millicode, multiplication, division etc instead we simply > link with libgcc.a which provides everything used by the compiler. I'll grab this for my queue. Cheers, Bruce > > Signed-off-by: Alexey Brodkin > --- > meta/recipes-kernel/linux/linux-yocto.inc | 4 > 1 file changed, 4 insertions(+) > > diff --git a/meta/recipes-kernel/linux/linux-yocto.inc > b/meta/recipes-kernel/linux/linux-yocto.inc > index 1ebfb606da..f191946f2a 100644 > --- a/meta/recipes-kernel/linux/linux-yocto.inc > +++ b/meta/recipes-kernel/linux/linux-yocto.inc > @@ -26,6 +26,10 @@ DEPENDS_append_nios2 = " libgcc" > KERNEL_CC_append_nios2 = " ${TOOLCHAIN_OPTIONS}" > KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}" > > +DEPENDS_append_arc = " libgcc" > +KERNEL_CC_append_arc = " ${TOOLCHAIN_OPTIONS}" > +KERNEL_LD_append_arc = " ${TOOLCHAIN_OPTIONS}" > + > KERNEL_FEATURES_append_qemuall=" features/debug/printk.scc" > > KERNEL_FEATURES_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'numa', > 'features/numa/numa.scc', '', d)}" > -- > 2.16.2 > > -- > ___ > Openembedded-core mailing list > openembedded-c...@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [linux-yocto] [PATCH] ARC: Add nsimhs- and hsdk-standard configs
On Fri, Feb 8, 2019 at 10:30 AM Alexey Brodkin wrote: > > Hi Bruce, > > > -Original Message- > > From: linux-snps-arc On Behalf > > Of Bruce Ashfield > > Sent: Friday, February 8, 2019 6:16 PM > > To: Alexey Brodkin > > Cc: linux-snps-arc@lists.infradead.org; Development list for the > > linux-yocto repositories > yo...@yoctoproject.org>; Khem Raj > > Subject: Re: [linux-yocto] [PATCH] ARC: Add nsimhs- and hsdk-standard > > configs > > > > On Fri, Feb 8, 2019 at 9:29 AM Alexey Brodkin > > wrote: > > > > > > With ARC support ramping-up in upstream OE we're ready to > > > build more complicated distributions and linux-yocto is > > > a nice and configurable base for that. > > > > > > This commit adds support of 1 simulated board (nSIM) and > > > the mast affordable and powerful to date development board (HSDK). > > > > > > Once Qemu port for ARC is functional (it's being actively developed now) > > > we'll switch from nSIM to Qemu. > > > > > > Still it would be really good to keep nSIM support in linux-yocto for now > > > as it allows for simpler testing as compared to real HW. > > > > Looks good to me, the configs make sense and are clean. > > > > I'd put this on master so it would be available for the 5.x -dev > > kernel (and then any > > future versions I release). If you want to test it on other versions > > (i.e. 4.19), let me > > know and I can put it there as well. > > Well I prepared those based on 4.19 branch so I know it works there. > > Now given 4.19 is the most recent LTS kernel is there a sense in adding these > configs in 4.19 or OE/Yocto-wise 4.19 is no different than any other version? > > Given linux-yocto might be a base for many different projects I'd like to make > sure ARC boards are available there so there will be an easy way to build and > run basic stuff. That's ok with me, I'll queue it for 4.19 as well. Bruce > > -Alexey -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [linux-yocto] [PATCH] ARC: Rename nSIM HS to HAPS HS
Looks good to me. What branches were you targetting for the change ? Bruce In message: [linux-yocto] [PATCH] ARC: Rename nSIM HS to HAPS HS on 31/05/2021 Alexey Brodkin via lists.yoctoproject.org wrote: > In v5.5 kernel we merged "nsim_hs" config into "haps_hs", see [1], > and from then on we use the same one "haps_hs" for everything simulated: > nSIM/QEMU/FPGA. > > Of important notes: > * We switched from legacy ARC UART to a standard DW UART > > * QEMU port for ARC is under review upstream, see [2]. >But even today with WIP version from our GitHub fork [3] its possible >to run this image for "hapshs" machine as simple as: >->8-- >$ qemu-system-arc -cpu archs -M virt -nographic -no-reboot -monitor none \ > -kernel build/tmp-glibc/deploy/images/hapshs/vmlinux-initramfs-hapshs.bin >->8-- > > [1] > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1681baa713aa138d3f0f77f05c3de1cd6416c7d6 > [2] https://lists.gnu.org/archive/html/qemu-devel/2021-04/msg00458.html > [3] https://github.com/foss-for-synopsys-dwc-arc-processors/qemu > > Signed-off-by: Alexey Brodkin > --- > .../nsimhs-standard.scc => hapshs/hapshs-standard.scc} | 4 ++-- > bsp/hapshs/hapshs.cfg| 12 > > bsp/{nsimhs/nsimhs.scc => hapshs/hapshs.scc} | 2 +- > bsp/nsimhs/nsimhs.cfg| 10 -- > 4 files changed, 15 insertions(+), 13 deletions(-) > rename bsp/{nsimhs/nsimhs-standard.scc => hapshs/hapshs-standard.scc} (72%) > create mode 100644 bsp/hapshs/hapshs.cfg > rename bsp/{nsimhs/nsimhs.scc => hapshs/hapshs.scc} (54%) > delete mode 100644 bsp/nsimhs/nsimhs.cfg > > diff --git a/bsp/nsimhs/nsimhs-standard.scc b/bsp/hapshs/hapshs-standard.scc > similarity index 72% > rename from bsp/nsimhs/nsimhs-standard.scc > rename to bsp/hapshs/hapshs-standard.scc > index 3201ca52..1842b00c 100644 > --- a/bsp/nsimhs/nsimhs-standard.scc > +++ b/bsp/hapshs/hapshs-standard.scc > @@ -1,8 +1,8 @@ > # SPDX-License-Identifier: MIT > -define KMACHINE nsimhs > +define KMACHINE hapshs > define KTYPE standard > define KARCH arc > > include ktypes/standard/standard.scc > > -include nsimhs.scc > +include hapshs.scc > diff --git a/bsp/hapshs/hapshs.cfg b/bsp/hapshs/hapshs.cfg > new file mode 100644 > index ..adcc0531 > --- /dev/null > +++ b/bsp/hapshs/hapshs.cfg > @@ -0,0 +1,12 @@ > +# SPDX-License-Identifier: MIT > +# ARCv2 ISA > +CONFIG_ISA_ARCV2=y > + > +# Serial port > +CONFIG_SERIAL_8250=y > +CONFIG_SERIAL_8250_CONSOLE=y > +CONFIG_SERIAL_8250_DW=y > +CONFIG_SERIAL_OF_PLATFORM=y > + > +# Built-in .dtb > +CONFIG_ARC_BUILTIN_DTB_NAME="haps_hs" > diff --git a/bsp/nsimhs/nsimhs.scc b/bsp/hapshs/hapshs.scc > similarity index 54% > rename from bsp/nsimhs/nsimhs.scc > rename to bsp/hapshs/hapshs.scc > index 3c1613a6..ea2b8b6c 100644 > --- a/bsp/nsimhs/nsimhs.scc > +++ b/bsp/hapshs/hapshs.scc > @@ -1,2 +1,2 @@ > # SPDX-License-Identifier: MIT > -kconf hardware nsimhs.cfg > +kconf hardware hapshs.cfg > diff --git a/bsp/nsimhs/nsimhs.cfg b/bsp/nsimhs/nsimhs.cfg > deleted file mode 100644 > index 34580a39.. > --- a/bsp/nsimhs/nsimhs.cfg > +++ /dev/null > @@ -1,10 +0,0 @@ > -# SPDX-License-Identifier: MIT > -# ARCv2 ISA > -CONFIG_ISA_ARCV2=y > - > -# Legacy ARC UART > -CONFIG_SERIAL_ARC=y > -CONFIG_SERIAL_ARC_CONSOLE=y > - > -# Built-in .dtb > -CONFIG_ARC_BUILTIN_DTB_NAME="nsim_hs" > -- > 2.16.2 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#9926): > https://lists.yoctoproject.org/g/linux-yocto/message/9926 > Mute This Topic: https://lists.yoctoproject.org/mt/83218216/1050810 > Group Owner: linux-yocto+ow...@lists.yoctoproject.org > Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub > [bruce.ashfi...@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [linux-yocto] [PATCH] ARC: Rename nSIM HS to HAPS HS
On Fri, Jun 11, 2021 at 12:15 PM Alexey Brodkin via lists.yoctoproject.org wrote: > > Hi Bruce, > > Looks like you were trying to fix-up an author of > https://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-cache/commit/?h=yocto-5.10&id=b12e322c9f3144e3b18c8723790dc027476b3c70 > but mistakenly did it for the next one > https://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-cache/commit/?h=yocto-5.10&id=422f8a09a856800f027bbae98dbab24cf3ae0f25. > The author as it comes in on your patches is rejected by the yocto git servers, so yes, it had to be fixed up. I used your email address, and yes, it looks like I got the wrong commit on one of them. Congrats on the free commit! :D Bruce > I'm fine with current state of things, but just to let you know ;) > > -Alexey > > From: Alexey Brodkin > Sent: Thursday, June 3, 2021 12:12 AM > To: Bruce Ashfield > Cc: linux-yo...@lists.yoctoproject.org ; > linux-snps-arc@lists.infradead.org > Subject: Re: [linux-yocto] [PATCH] ARC: Rename nSIM HS to HAPS HS > > Hi Bruce, > > Please pardon my lack of good knowledge here as I don't deal with OE/Yocto > very often. > So what are the options we have here? > > Given dependency on the Linux kernel v5.5 where that change > ("nsim_hs_defconfig" -> "haps_hs_defconfig") was done I'd say whatever active > branches of version above 5.5 exist would be good to get it. > > Looking at https://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-cache/ I'd > think these are: 5.10, 5.13 & "master" branches. > > -Alexey > > From: Bruce Ashfield > Sent: Thursday, June 3, 2021 12:01 AM > To: Alexey Brodkin > Cc: linux-yo...@lists.yoctoproject.org ; > linux-snps-arc@lists.infradead.org ; > Alexey Brodkin > Subject: Re: [linux-yocto] [PATCH] ARC: Rename nSIM HS to HAPS HS > > Looks good to me. > > What branches were you targetting for the change ? > > Bruce > > In message: [linux-yocto] [PATCH] ARC: Rename nSIM HS to HAPS HS > on 31/05/2021 Alexey Brodkin via lists.yoctoproject.org wrote: > > > In v5.5 kernel we merged "nsim_hs" config into "haps_hs", see [1], > > and from then on we use the same one "haps_hs" for everything simulated: > > nSIM/QEMU/FPGA. > > > > Of important notes: > > * We switched from legacy ARC UART to a standard DW UART > > > > * QEMU port for ARC is under review upstream, see [2]. > >But even today with WIP version from our GitHub fork [3] its possible > >to run this image for "hapshs" machine as simple as: > >->8-- > >$ qemu-system-arc -cpu archs -M virt -nographic -no-reboot -monitor none > > \ > > -kernel > > build/tmp-glibc/deploy/images/hapshs/vmlinux-initramfs-hapshs.bin > >->8-- > > > > [1] > > https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1681baa713aa138d3f0f77f05c3de1cd6416c7d6__;!!A4F2R9G_pg!Kky99r2sqXZzDoCmjJ78MNNtcrXGIN8a8ILbgukM-lZ6eweRt8pm63oo9HR2lohj$ > > [2] > > https://urldefense.com/v3/__https://lists.gnu.org/archive/html/qemu-devel/2021-04/msg00458.html__;!!A4F2R9G_pg!Kky99r2sqXZzDoCmjJ78MNNtcrXGIN8a8ILbgukM-lZ6eweRt8pm63oo9GmSrEmD$ > > [3] > > https://urldefense.com/v3/__https://github.com/foss-for-synopsys-dwc-arc-processors/qemu__;!!A4F2R9G_pg!Kky99r2sqXZzDoCmjJ78MNNtcrXGIN8a8ILbgukM-lZ6eweRt8pm63oo9N20qLr4$ > > > > Signed-off-by: Alexey Brodkin > > --- > > .../nsimhs-standard.scc => hapshs/hapshs-standard.scc} | 4 ++-- > > bsp/hapshs/hapshs.cfg| 12 > > > > bsp/{nsimhs/nsimhs.scc => hapshs/hapshs.scc} | 2 +- > > bsp/nsimhs/nsimhs.cfg| 10 > > -- > > 4 files changed, 15 insertions(+), 13 deletions(-) > > rename bsp/{nsimhs/nsimhs-standard.scc => hapshs/hapshs-standard.scc} (72%) > > create mode 100644 bsp/hapshs/hapshs.cfg > > rename bsp/{nsimhs/nsimhs.scc => hapshs/hapshs.scc} (54%) > > delete mode 100644 bsp/nsimhs/nsimhs.cfg > > > > diff --git a/bsp/nsimhs/nsimhs-standard.scc b/bsp/hapshs/hapshs-standard.scc > > similarity index 72% > > rename from bsp/nsimhs/nsimhs-standard.scc > > rename to bsp/hapshs/hapshs-standard.scc > > index 3201ca52..1842b00c 100644 > > --- a/bsp/nsimhs/nsimhs-standard.scc > > +++ b/bsp/hapshs/hapshs-standard.scc &g
Re: [linux-yocto] [PATCH] ARC: Rename nSIM HS to HAPS HS
On Fri, Jun 11, 2021 at 1:00 PM Alexey Brodkin wrote: > > Hi Bruce, > > > The author as it comes in on your patches is rejected by the yocto git > > servers, so yes, it had to be fixed up. > > Do you know what needs to be done to get that fixed? > I hope to keep sending patches from time to time > (and was about to send yet another one just now), > so would be good to make things simpler and exclude > that manual fix-up step. Did you send the patch via git-send email ? And what smtp relay did you use (if that's the case). The patch had a "via lists.yoctoproject.org" in the author, and that is what caused the server's pre-commit hook to reject it. Bruce > > -Alexey -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc