Открытые файлы в Word с помощью ленточного кода - позади

В ядре Linux разные архитектуры имеют разные доступные форматы изображений. uImage доступно в Linux, но не включено в Buildroot.

Есть 2 способа производства uImage.


Ручной способ (ОК для предварительного тестирования):

  1. В menuconfig -> Kernel, установите:
    • Kernel binary format = пользовательский target
    • Kernel image target name = uImage
  2. make host-uboot-tools
  3. make linux

Шаг 2 требуется, потому что для сборки uImage вам нужен инструмент mkimage из host-uboot-tools. Использование «пользовательского образа». Buildroot не знает об этом, и сборка завершится неудачей без шага 2.


Правильный способ :

Просто включите формат uImage в Buildroot для архитектуры C-Sky. Этого простого патча должно быть достаточно:

diff --git a/linux/Config.in b/linux/Config.in
index 1a50958ea146..c89c12b433be 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -211,7 +211,7 @@ config BR2_LINUX_KERNEL_UIMAGE
        depends on BR2_arc || BR2_arm || BR2_armeb || \
                   BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \
                   BR2_sh || BR2_mips || BR2_mipsel || \
-                  BR2_mips64 || BR2_mips64el || BR2_xtensa
+                  BR2_mips64 || BR2_mips64el || BR2_xtensa || BR2_csky
        select BR2_PACKAGE_HOST_UBOOT_TOOLS

 config BR2_LINUX_KERNEL_APPENDED_UIMAGE

Это позволяет выбрать Kernel binary format = uImage и собрать как обычно, без необходимости вручную собирать host-uboot-tools перед Linux.

6
задан Berkay Turancı 6 December 2012 в 20:21
поделиться

1 ответ

Необходимо было бы использовать Word API для открытия документа. См. эту ссылку для ссылки. Вам, вероятно, придется обновить его на основе версии API, которую Вы используете.

private void button1_Click(object sender, System.EventArgs e)
{
    // Use the open file dialog to choose a word document
    if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
    {
        // set the file name from the open file dialog
        object fileName = openFileDialog1.FileName;
        object readOnly = false;
        object isVisible = true;
        // Here is the way to handle parameters you don't care about in .NET
        object missing = System.Reflection.Missing.Value;
        // Make word visible, so you can see what's happening
        WordApp.Visible = true;
        // Open the document that was chosen by the dialog
        Word.Document aDoc = WordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible);
        // Activate the document so it shows up in front
        aDoc.Activate();
        // Add the copyright text and a line break
        WordApp.Selection.TypeText("Copyright C# Corner");
        WordApp.Selection.TypeParagraph();
    }
}
7
ответ дан 17 December 2019 в 00:15
поделиться
Другие вопросы по тегам:

Похожие вопросы: